pub enum WalkedDirection {
Down,
Left,
Right,
}Expand description
Remember which path was taken to reach this node from the parent in WalkMutOwned and WalkMutBorrowed.
Variants§
Implementations§
Source§impl WalkedDirection
impl WalkedDirection
Sourcepub fn from_side(side: bool) -> Self
pub fn from_side(side: bool) -> Self
Self::Right if side is true otherwise Self::Left
Trait Implementations§
Source§impl Clone for WalkedDirection
impl Clone for WalkedDirection
Source§fn clone(&self) -> WalkedDirection
fn clone(&self) -> WalkedDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WalkedDirection
Source§impl Debug for WalkedDirection
impl Debug for WalkedDirection
impl Eq for WalkedDirection
Source§impl From<WalkedDirection> for ()
impl From<WalkedDirection> for ()
Source§fn from(_: WalkedDirection) -> Self
fn from(_: WalkedDirection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WalkedDirection
impl PartialEq for WalkedDirection
Source§fn eq(&self, other: &WalkedDirection) -> bool
fn eq(&self, other: &WalkedDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WalkedDirection
Auto Trait Implementations§
impl Freeze for WalkedDirection
impl RefUnwindSafe for WalkedDirection
impl Send for WalkedDirection
impl Sync for WalkedDirection
impl Unpin for WalkedDirection
impl UnsafeUnpin for WalkedDirection
impl UnwindSafe for WalkedDirection
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