pub struct Tree { /* private fields */ }Expand description
An arena-based tree implementation. Each node is stored in a vector and the children are accessed by index.
Having all the nodes in a vector allows for a more cache-friendly implementation. And accessing them by index allows to avoid borrow checker issues related to having recursive data structures.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Tree
impl Send for Tree
impl Sync for Tree
impl Unpin for Tree
impl UnwindSafe for Tree
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