pub struct BinaryNodeMut<'a, T> { /* private fields */ }
Implementations§
Source§impl<'a, T> BinaryNodeMut<'a, T>
impl<'a, T> BinaryNodeMut<'a, T>
Sourcepub fn left(&mut self) -> Option<BinaryNodeMut<'_, T>>
pub fn left(&mut self) -> Option<BinaryNodeMut<'_, T>>
Return the left child, if exists.
Sourcepub fn right(&mut self) -> Option<BinaryNodeMut<'_, T>>
pub fn right(&mut self) -> Option<BinaryNodeMut<'_, T>>
Return the right child, if exists.
Sourcepub fn set_right(&mut self, value: T) -> BinaryNodeMut<'_, T>
pub fn set_right(&mut self, value: T) -> BinaryNodeMut<'_, T>
Set the right child to value and return the node.
Sourcepub fn set_left(&mut self, value: T) -> BinaryNodeMut<'_, T>
pub fn set_left(&mut self, value: T) -> BinaryNodeMut<'_, T>
Set the left child to value and return the node.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for BinaryNodeMut<'a, T>
impl<'a, T> RefUnwindSafe for BinaryNodeMut<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for BinaryNodeMut<'a, T>where
T: Send,
impl<'a, T> Sync for BinaryNodeMut<'a, T>where
T: Sync,
impl<'a, T> Unpin for BinaryNodeMut<'a, T>
impl<'a, T> !UnwindSafe for BinaryNodeMut<'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