pub enum AccessRelatedness {
LocalAccess,
ForeignAccess,
}Expand description
Relative position of the access
Variants§
LocalAccess
The access happened either through the node itself or one of its transitive children.
ForeignAccess
The access happened through this nodes ancestor or through a sibling/cousin/uncle/etc.
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 duplicate 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:
LocalAccess: 0 bytesForeignAccess: 0 bytes