Struct alacritty::event::SearchState[][src]

pub struct SearchState {
    pub direction: Direction,
    pub history_index: Option<usize>,
    display_offset_delta: i32,
    origin: Point,
    focused_match: Option<Match>,
    history: VecDeque<String>,
    dfas: Option<RegexSearch>,
}
Expand description

Regex search state.

Fields

direction: Direction

Search direction.

history_index: Option<usize>

Current position in the search history.

display_offset_delta: i32

Change in display offset since the beginning of the search.

origin: Point

Search origin in viewport coordinates relative to original display offset.

focused_match: Option<Match>

Focused match during active search.

history: VecDeque<String>

Search regex and history.

During an active search, the first element is the user’s current input.

While going through history, the SearchState::history_index will point to the element in history which is currently being previewed.

dfas: Option<RegexSearch>

Compiled search automatons.

Implementations

Search regex text if a search is active.

Direction of the search from the search origin.

Focused match during vi-less search.

Active search dfas.

Search regex text if a search is active.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.