pub enum AccessRelatedness {
This,
StrictChildAccess,
AncestorAccess,
CousinAccess,
}
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.
CousinAccess
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,
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 bytesCousinAccess
: 0 bytes