enum NewPermission {
Uniform {
perm: Permission,
access: Option<AccessKind>,
protector: Option<ProtectorKind>,
},
FreezeSensitive {
freeze_perm: Permission,
freeze_access: Option<AccessKind>,
freeze_protector: Option<ProtectorKind>,
nonfreeze_perm: Permission,
nonfreeze_access: Option<AccessKind>,
},
}
Expand description
Indicates which permissions to grant to the retagged pointer.
Variants§
Uniform
FreezeSensitive
Fields
§
freeze_perm: Permission
§
freeze_access: Option<AccessKind>
§
freeze_protector: Option<ProtectorKind>
§
nonfreeze_perm: Permission
§
nonfreeze_access: Option<AccessKind>
Implementations§
Source§impl NewPermission
impl NewPermission
Sourcefn from_ref_ty<'tcx>(
ty: Ty<'tcx>,
kind: RetagKind,
cx: &MiriInterpCx<'tcx>,
) -> Self
fn from_ref_ty<'tcx>( ty: Ty<'tcx>, kind: RetagKind, cx: &MiriInterpCx<'tcx>, ) -> Self
A key function: determine the permissions to grant at a retag for the given kind of reference/pointer.
fn from_box_ty<'tcx>( ty: Ty<'tcx>, kind: RetagKind, cx: &MiriInterpCx<'tcx>, ) -> Self
fn protector(&self) -> Option<ProtectorKind>
Trait Implementations§
Source§impl Clone for NewPermission
impl Clone for NewPermission
Source§fn clone(&self) -> NewPermission
fn clone(&self) -> NewPermission
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for NewPermission
impl RefUnwindSafe for NewPermission
impl Send for NewPermission
impl Sync for NewPermission
impl Unpin for NewPermission
impl UnwindSafe for NewPermission
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 5 bytes
Size for each variant:
Uniform
: 4 bytesFreezeSensitive
: 5 bytes