pub struct Neighbors<A> {
pub me: Option<A>,
pub parent: Option<A>,
pub first_child: Option<A>,
pub next_sibling: Option<A>,
pub prev_sibling: Option<A>,
}
Expand description
Structure containing neighboring information for a node.
Internally (for the navigator) this structure is used with A=usize to store how neighboring and (therby navigaiton) information for nodes (which noce is the parent node i.E.).
But it can also be used (and that is why it is public) for other neighboring information, like all the neighboring values of nodes.
Fields§
§me: Option<A>
§parent: Option<A>
§first_child: Option<A>
§next_sibling: Option<A>
§prev_sibling: Option<A>
Implementations§
Trait Implementations§
impl<A: Eq> Eq for Neighbors<A>
impl<A> StructuralPartialEq for Neighbors<A>
Auto Trait Implementations§
impl<A> Freeze for Neighbors<A>where
A: Freeze,
impl<A> RefUnwindSafe for Neighbors<A>where
A: RefUnwindSafe,
impl<A> Send for Neighbors<A>where
A: Send,
impl<A> Sync for Neighbors<A>where
A: Sync,
impl<A> Unpin for Neighbors<A>where
A: Unpin,
impl<A> UnwindSafe for Neighbors<A>where
A: UnwindSafe,
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