pub struct Adjacency(pub SiblingLocation, pub SiblingLocation, pub SiblingLocation, pub SiblingLocation, pub SiblingLocation, pub SiblingLocation);
Expand description
A type providing information about what’s above and below Tree
items.
Tuple Fields§
§0: SiblingLocation
§1: SiblingLocation
§2: SiblingLocation
§3: SiblingLocation
§4: SiblingLocation
§5: SiblingLocation
Implementations§
source§impl Adjacency
impl Adjacency
sourcepub fn level(&self) -> Level
pub fn level(&self) -> Level
Return the level at which this sibling is located in the hierarchy.
sourcepub fn get(&self, level: Level) -> Option<&SiblingLocation>
pub fn get(&self, level: Level) -> Option<&SiblingLocation>
Get a reference to the sibling location at level
.
sourcepub fn get_mut(&mut self, level: Level) -> Option<&mut SiblingLocation>
pub fn get_mut(&mut self, level: Level) -> Option<&mut SiblingLocation>
Get a mutable reference to the sibling location at level
.
Trait Implementations§
source§impl Ord for Adjacency
impl Ord for Adjacency
source§impl PartialEq for Adjacency
impl PartialEq for Adjacency
source§impl PartialOrd for Adjacency
impl PartialOrd for Adjacency
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Adjacency
impl Eq for Adjacency
impl StructuralEq for Adjacency
impl StructuralPartialEq for Adjacency
Auto Trait Implementations§
impl RefUnwindSafe for Adjacency
impl Send for Adjacency
impl Sync for Adjacency
impl Unpin for Adjacency
impl UnwindSafe for Adjacency
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more