pub struct Cell<T> {
pub item: T,
pub height: u8,
pub left: Bst<T>,
pub right: Bst<T>,
}Expand description
Cell with item, left/right subtrees: look at the source code to understand. Note: usually items inside structs are not made public but I’ve chosen to do so to make your assignment easier.
Fields§
§item: T§height: u8§left: Bst<T>§right: Bst<T>Implementations§
Auto Trait Implementations§
impl<T> Freeze for Cell<T>where
T: Freeze,
impl<T> RefUnwindSafe for Cell<T>where
T: RefUnwindSafe,
impl<T> Send for Cell<T>where
T: Send,
impl<T> Sync for Cell<T>where
T: Sync,
impl<T> Unpin for Cell<T>where
T: Unpin,
impl<T> UnsafeUnpin for Cell<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Cell<T>where
T: 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