pub struct SearchModesState {
pub mode: SearchMode,
pub input: Input,
pub fuzzy_matcher: SkimMatcherV2,
pub regex: Option<Regex>,
pub matching_columns: Vec<(usize, String)>,
pub current_match_index: usize,
pub saved_sql_text: String,
pub saved_cursor_position: usize,
}Expand description
State for search/filter operations
Fields§
§mode: SearchMode§input: Input§fuzzy_matcher: SkimMatcherV2§regex: Option<Regex>§matching_columns: Vec<(usize, String)>§current_match_index: usize§saved_sql_text: String§saved_cursor_position: usizeImplementations§
Source§impl SearchModesState
impl SearchModesState
pub fn new(mode: SearchMode) -> Self
pub fn reset(&mut self)
pub fn get_pattern(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SearchModesState
impl RefUnwindSafe for SearchModesState
impl Send for SearchModesState
impl Sync for SearchModesState
impl Unpin for SearchModesState
impl UnwindSafe for SearchModesState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more