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 copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WalkedDirection
impl Debug 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
impl Copy for WalkedDirection
impl Eq for WalkedDirection
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)