pub struct HelpWidget { /* private fields */ }
Expand description
Help widget that manages its own state and rendering
Implementations§
Source§impl HelpWidget
impl HelpWidget
pub fn new() -> Self
Sourcepub fn handle_key(&mut self, key: KeyEvent) -> HelpAction
pub fn handle_key(&mut self, key: KeyEvent) -> HelpAction
Handle key input
Trait Implementations§
Source§impl DebugInfoProvider for HelpWidget
impl DebugInfoProvider for HelpWidget
Source§fn debug_info(&self) -> String
fn debug_info(&self) -> String
Generate a formatted string containing debug information about the widget’s state Read more
Source§fn debug_summary(&self) -> String
fn debug_summary(&self) -> String
Optional: Get a short one-line summary of the widget state
Useful for compact debug views
Source§impl DebugProvider for HelpWidget
impl DebugProvider for HelpWidget
Source§fn component_name(&self) -> &str
fn component_name(&self) -> &str
Get the component’s name for identification in logs
Source§fn debug_info(&self) -> String
fn debug_info(&self) -> String
Generate debug information about current state
Source§fn debug_summary(&self) -> Option<String>
fn debug_summary(&self) -> Option<String>
Generate a compact summary for the status line
Auto Trait Implementations§
impl Freeze for HelpWidget
impl RefUnwindSafe for HelpWidget
impl Send for HelpWidget
impl Sync for HelpWidget
impl Unpin for HelpWidget
impl UnwindSafe for HelpWidget
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> 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