Struct whistlinoak::Tree
source · [−]Expand description
An annotated tree structure with an arity of 2N
, backed by an mmap.
Each leaf contained in the tree is decorated by an Annotation
, computed
on the push
of said leaf. The change is then propagated up through the
tree, recursively combining the annotations of filled subtrees until the
root
itself is computed.
Leaves can also be pop
ped from tree, and annotations will be kept
updated.
Safety
Using an N
of 0 will result in a panic when trying to perform any
operation.
Implementations
Auto Trait Implementations
impl<L, A, const N: usize> RefUnwindSafe for Tree<L, A, N> where
A: RefUnwindSafe,
L: RefUnwindSafe,
impl<L, A = (), const N: usize = 1> !Send for Tree<L, A, N>
impl<L, A = (), const N: usize = 1> !Sync for Tree<L, A, N>
impl<L, A, const N: usize> Unpin for Tree<L, A, N>
impl<L, A, const N: usize> UnwindSafe for Tree<L, A, N> where
A: RefUnwindSafe,
L: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more