#[repr(u8)]pub enum HistoryDirection {
Previous = 0,
Next = 1,
}Expand description
History navigation direction.
Used by Request::History variant. Self-documenting alternative to bool.
Variants§
Previous = 0
Up arrow key (navigate to older command)
Next = 1
Down arrow key (navigate to newer command or restore original)
Trait Implementations§
Source§impl Clone for HistoryDirection
impl Clone for HistoryDirection
Source§fn clone(&self) -> HistoryDirection
fn clone(&self) -> HistoryDirection
Returns a duplicate of the value. Read more
1.0.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 HistoryDirection
impl Debug for HistoryDirection
Source§impl PartialEq for HistoryDirection
impl PartialEq for HistoryDirection
impl Copy for HistoryDirection
impl Eq for HistoryDirection
impl StructuralPartialEq for HistoryDirection
Auto Trait Implementations§
impl Freeze for HistoryDirection
impl RefUnwindSafe for HistoryDirection
impl Send for HistoryDirection
impl Sync for HistoryDirection
impl Unpin for HistoryDirection
impl UnsafeUnpin for HistoryDirection
impl UnwindSafe for HistoryDirection
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