Enum termwiz::lineedit::SearchDirection[][src]

pub enum SearchDirection {
    Backwards,
    Forwards,
}

Encodes the direction the search should take, relative to the current HistoryIndex.

Variants

Backwards

The search goes backwards towards the smaller HistoryIndex values at the beginning of history.

Forwards

The search goes forwards towarrds the larger HistoryIndex values at the end of history.

Implementations

impl SearchDirection[src]

pub fn next(self, idx: HistoryIndex) -> Option<HistoryIndex>[src]

Given a history index, compute the next value in the encoded search directory. Returns None if the search would overflow.

Trait Implementations

impl Clone for SearchDirection[src]

impl Copy for SearchDirection[src]

impl Debug for SearchDirection[src]

impl Eq for SearchDirection[src]

impl PartialEq<SearchDirection> for SearchDirection[src]

impl StructuralEq for SearchDirection[src]

impl StructuralPartialEq for SearchDirection[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.