pub struct StatsWidget { /* private fields */ }
Expand description
A self-contained widget for displaying column statistics
Implementations§
Source§impl StatsWidget
impl StatsWidget
pub fn new() -> Self
Sourcepub fn handle_key(&mut self, key: KeyEvent) -> StatsAction
pub fn handle_key(&mut self, key: KeyEvent) -> StatsAction
Handle key input when the stats widget is active Returns true if the app should exit, false otherwise
Trait Implementations§
Source§impl DebugInfoProvider for StatsWidget
impl DebugInfoProvider for StatsWidget
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
Auto Trait Implementations§
impl Freeze for StatsWidget
impl RefUnwindSafe for StatsWidget
impl Send for StatsWidget
impl Sync for StatsWidget
impl Unpin for StatsWidget
impl UnwindSafe for StatsWidget
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