pub enum ListView<T> {
Empty,
Leaf(T),
Node {
color: Color,
len: usize,
left: ListTree<T>,
right: ListTree<T>,
},
}Variants§
Trait Implementations§
Source§impl<T: PartialEq> PartialEq for ListView<T>
impl<T: PartialEq> PartialEq for ListView<T>
impl<T: Eq> Eq for ListView<T>
impl<T> StructuralPartialEq for ListView<T>
Auto Trait Implementations§
impl<T> Freeze for ListView<T>where
T: Freeze,
impl<T> RefUnwindSafe for ListView<T>where
T: RefUnwindSafe,
impl<T> !Send for ListView<T>
impl<T> !Sync for ListView<T>
impl<T> Unpin for ListView<T>where
T: Unpin,
impl<T> UnsafeUnpin for ListView<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ListView<T>where
T: UnwindSafe + RefUnwindSafe,
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