pub enum Shape<'a, T: Element> {
Leaf(&'a [T]),
Branch(&'a Node<T>, &'a Node<T>),
}Expand description
What a node holds: its elements, when it is a leaf, or its two subtrees, when it is a branch.
Variants§
Leaf(&'a [T])
From one to as many elements as a leaf of their kind holds, in order.
Branch(&'a Node<T>, &'a Node<T>)
The elements of the left node, then those of the right; each holds at least one.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Forget for Shape<'a, T>
impl<'a, T> Freeze for Shape<'a, T>
impl<'a, T> Move for Shape<'a, T>
impl<'a, T> RefUnwindSafe for Shape<'a, T>where
T: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
<T as Sealed>::Measure: RefUnwindSafe,
<T as Sealed>::Key: RefUnwindSafe,
impl<'a, T> Send for Shape<'a, T>
impl<'a, T> Sync for Shape<'a, T>
impl<'a, T> Unpin for Shape<'a, T>
impl<'a, T> UnsafeUnpin for Shape<'a, T>
impl<'a, T> UnwindSafe for Shape<'a, T>
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