pub enum Direction {
Left,
Right,
}
Expand description
Represents the possible directions in a binary tree search based on key comparisons.
This enum is defined as part of the TreapMapConfig
trait and is used to
determine the direction of traversal in a binary tree during key-based
searches.
Variants§
Left
Indicates that the search should proceed to the left child of the current node. This direction is typically chosen when the current key is greater than the search key.
Right
Indicates that the search should proceed to the right child of the current node. This direction is usually selected when the current key is less than the search key.
Trait Implementations§
source§impl PartialEq for Direction
impl PartialEq for Direction
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
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