pub enum Node<T: Item> {
Internal {
height: u8,
summary: T::Summary,
child_summaries: ArrayVec<T::Summary, { _ }>,
child_trees: ArrayVec<SumTree<T>, { _ }>,
},
Leaf {
summary: T::Summary,
items: ArrayVec<T, { _ }>,
item_summaries: ArrayVec<T::Summary, { _ }>,
},
}Variants§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Node<T>
impl<T> RefUnwindSafe for Node<T>where
<T as Item>::Summary: RefUnwindSafe,
ArrayVec<<T as Item>::Summary, { 2 * TREE_BASE }>: RefUnwindSafe,
ArrayVec<SumTree<T>, { 2 * TREE_BASE }>: RefUnwindSafe,
ArrayVec<T, { 2 * TREE_BASE }>: RefUnwindSafe,
impl<T> Send for Node<T>
impl<T> Sync for Node<T>
impl<T> Unpin for Node<T>
impl<T> UnsafeUnpin for Node<T>where
<T as Item>::Summary: UnsafeUnpin,
ArrayVec<<T as Item>::Summary, { 2 * TREE_BASE }>: UnsafeUnpin,
ArrayVec<SumTree<T>, { 2 * TREE_BASE }>: UnsafeUnpin,
ArrayVec<T, { 2 * TREE_BASE }>: UnsafeUnpin,
impl<T> UnwindSafe for Node<T>where
<T as Item>::Summary: UnwindSafe,
ArrayVec<<T as Item>::Summary, { 2 * TREE_BASE }>: UnwindSafe,
ArrayVec<SumTree<T>, { 2 * TREE_BASE }>: UnwindSafe,
ArrayVec<T, { 2 * TREE_BASE }>: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more