Enum minus::InputEvent[][src]

pub enum InputEvent {
    Exit,
    UpdateRows(usize),
    UpdateUpperMark(usize),
    UpdateLineNumber(LineNumbers),
    Search(SearchMode),
    NextMatch,
    PrevMatch,
}

Events handled by the minus pager.

Variants

Exit

Ctrl+C or Q, exits the application.

UpdateRows(usize)

The terminal was resized. Contains the new number of rows.

UpdateUpperMark(usize)

Up or Down was pressed. Contains the new value for the upper mark. Also sent by g or G, which behave like Vim: jump to top or bottom.

UpdateLineNumber(LineNumbers)

Ctrl+L, inverts the line number display. Contains the new value.

Search(SearchMode)

/, Searching for certain pattern of text

NextMatch

Get to the next match in forward mode

PrevMatch

Get to the previous match in forward mode

Trait Implementations

impl Clone for InputEvent[src]

impl Copy for InputEvent[src]

impl Debug for InputEvent[src]

impl PartialEq<InputEvent> for InputEvent[src]

impl StructuralPartialEq for InputEvent[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.