pub struct HelpState {
pub scroll_offset: u16,
pub max_scroll: u16,
pub search_query: String,
pub search_active: bool,
pub search_match_index: usize,
pub search_matches: Vec<usize>,
pub selected_section: HelpSection,
}Expand description
State for the help widget
Fields§
§scroll_offset: u16Current scroll offset
max_scroll: u16Maximum scroll position
search_query: StringSearch query within help
search_active: boolWhether search mode is active
search_match_index: usizeCurrent search match index
search_matches: Vec<usize>All search match positions
selected_section: HelpSectionSelected help section
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HelpState
impl RefUnwindSafe for HelpState
impl Send for HelpState
impl Sync for HelpState
impl Unpin for HelpState
impl UnwindSafe for HelpState
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