pub struct Node<T> {
pub val: T,
pub children: Vec<usize>,
/* private fields */
}
Expand description
simple node struct containing its children and a value. Children are meant to be usizes corresponding to indexes of the tree’s arena vector which in turn grant access to actual node
Fields§
§val: T
§children: Vec<usize>
Implementations§
Trait Implementations§
Auto Trait Implementations§
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> 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