pub enum Direction {
Previous = -1,
Next = 1,
Same = 0,
}Expand description
Enum representing a direction relative to a key on either the horizontal or vertical axis
Variants§
Previous = -1
Previous refers to above or left to the key
Next = 1
Next refers to below or to the right of the key
Same = 0
Same refers to the same row or column as the reference key
Trait Implementations§
impl Copy for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
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