pub struct HelpScreen<'a> { /* private fields */ }Implementations§
Source§impl HelpScreen<'_>
impl HelpScreen<'_>
pub fn showing(&self) -> bool
pub fn toggle_showing(&mut self)
Sourcepub fn handle_key_event(&mut self, event: &Event) -> bool
pub fn handle_key_event(&mut self, event: &Event) -> bool
handle_key_event handles key events for the help menu. Returns true when user hit quit (Ctrl + Q).
pub fn render(&mut self, frame: &mut Frame<'_>, area: Rect)
pub fn render_help_line(&self, frame: &mut Frame<'_>, area: Rect)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HelpScreen<'a>
impl<'a> RefUnwindSafe for HelpScreen<'a>
impl<'a> Send for HelpScreen<'a>
impl<'a> Sync for HelpScreen<'a>
impl<'a> Unpin for HelpScreen<'a>
impl<'a> UnsafeUnpin for HelpScreen<'a>
impl<'a> UnwindSafe for HelpScreen<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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