pub struct Node<'a> {
pub position: u128,
pub subitems: Vec<Vec<bool>>,
/* private fields */
}
Fields§
§position: u128
The tranversal position.
subitems: Vec<Vec<bool>>
The node’s subitems in bits.
Implementations§
Source§impl Node<'_>
impl Node<'_>
Sourcepub fn child(&mut self, index: u8) -> Result<Node<'_>, NodeError>
pub fn child(&mut self, index: u8) -> Result<Node<'_>, NodeError>
Get a child of the node. Index 0 is the left child, index 1 is the right child.
Sourcepub fn add_child(
&mut self,
index: u8,
subitems: Vec<Vec<bool>>,
overwrite: bool,
) -> Result<Node<'_>, NodeError>
pub fn add_child( &mut self, index: u8, subitems: Vec<Vec<bool>>, overwrite: bool, ) -> Result<Node<'_>, NodeError>
Add a child to the node.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Node<'a>
impl<'a> RefUnwindSafe for Node<'a>
impl<'a> Send for Node<'a>
impl<'a> Sync for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> !UnwindSafe for Node<'a>
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