pub struct Node<T> { /* private fields */ }Expand description
Single node in the tree.
Fields are private. Use the accessor methods to read or mutate them.
Implementations§
Source§impl<T> Node<T>
impl<T> Node<T>
Sourcepub fn children_mut(&mut self) -> &mut Vec<Node<T>>
pub fn children_mut(&mut self) -> &mut Vec<Node<T>>
Mutable access to the children vector.
Sourcepub fn child_count(&self) -> usize
pub fn child_count(&self) -> usize
Number of direct children.
Trait Implementations§
impl<T: Eq> Eq for Node<T>
impl<T> StructuralPartialEq for Node<T>
Auto Trait Implementations§
impl<T> Freeze for Node<T>where
T: Freeze,
impl<T> RefUnwindSafe for Node<T>where
T: RefUnwindSafe,
impl<T> Send for Node<T>where
T: Send,
impl<T> Sync for Node<T>where
T: Sync,
impl<T> Unpin for Node<T>where
T: Unpin,
impl<T> UnsafeUnpin for Node<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Node<T>where
T: 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