pub struct TreeVec<N> { /* private fields */ }
Expand description
An owned tree, which is stored in contigious memory. Fast traversal and query times.
Implementations§
Source§impl<N> TreeVec<N>
impl<N> TreeVec<N>
Sourcepub fn new(bytes: Vec<u8>) -> TreeVec<N>
pub fn new(bytes: Vec<u8>) -> TreeVec<N>
Takes ownership of the bytes, and interprets them as a tree. No checks are performed wether
these actually describe a sensible tree. None of Rusts safety guarantees are violated if
providing ‘random’ bytes in this constructor. For bugfree code utilizing bytes written with
TreeBuilder
is recommended, though.
pub fn as_tree_slice(&self) -> &TreeSlice<N>
Trait Implementations§
Auto Trait Implementations§
impl<N> Freeze for TreeVec<N>
impl<N> RefUnwindSafe for TreeVec<N>where
N: RefUnwindSafe,
impl<N> Send for TreeVec<N>where
N: Send,
impl<N> Sync for TreeVec<N>where
N: Sync,
impl<N> Unpin for TreeVec<N>where
N: Unpin,
impl<N> UnwindSafe for TreeVec<N>where
N: 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