pub struct SearchState {
pub query: Option<String>,
pub filtered_indices: Vec<usize>,
pub filtered_pattern_indices: Vec<usize>,
pub pre_search_selection: Option<usize>,
pub scope_indices: Option<HashSet<usize>>,
}Expand description
Search mode state.
Fields§
§query: Option<String>§filtered_indices: Vec<usize>§filtered_pattern_indices: Vec<usize>§pre_search_selection: Option<usize>§scope_indices: Option<HashSet<usize>>When a group tab is active, holds the host indices visible in that group. Search results are intersected with this set to scope the search.
Trait Implementations§
Source§impl Default for SearchState
impl Default for SearchState
Source§fn default() -> SearchState
fn default() -> SearchState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SearchState
impl RefUnwindSafe for SearchState
impl Send for SearchState
impl Sync for SearchState
impl Unpin for SearchState
impl UnsafeUnpin for SearchState
impl UnwindSafe for SearchState
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> 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