Enum miri::borrow_tracker::tree_borrows::tree::AccessRelatedness
source · pub enum AccessRelatedness {
This,
StrictChildAccess,
AncestorAccess,
DistantAccess,
}
Expand description
Relative position of the access
Variants§
This
The accessed pointer is the current one
StrictChildAccess
The accessed pointer is a (transitive) child of the current one.
AncestorAccess
The accessed pointer is a (transitive) parent of the current one.
DistantAccess
The accessed pointer is neither of the above.
Implementations§
source§impl AccessRelatedness
impl AccessRelatedness
sourcepub fn is_foreign(self) -> bool
pub fn is_foreign(self) -> bool
Check that access is either Ancestor or Distant, i.e. not a transitive child (initial pointer included).
Trait Implementations§
source§impl Clone for AccessRelatedness
impl Clone for AccessRelatedness
source§fn clone(&self) -> AccessRelatedness
fn clone(&self) -> AccessRelatedness
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 moresource§impl Debug for AccessRelatedness
impl Debug for AccessRelatedness
source§impl PartialEq for AccessRelatedness
impl PartialEq for AccessRelatedness
impl Copy for AccessRelatedness
impl Eq for AccessRelatedness
impl StructuralPartialEq for AccessRelatedness
Auto Trait Implementations§
impl Freeze for AccessRelatedness
impl RefUnwindSafe for AccessRelatedness
impl Send for AccessRelatedness
impl Sync for AccessRelatedness
impl Unpin for AccessRelatedness
impl UnwindSafe for AccessRelatedness
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: 1 byte
Size for each variant:
This
: 0 bytesStrictChildAccess
: 0 bytesAncestorAccess
: 0 bytesDistantAccess
: 0 bytes