pub struct KeybindingPanelState { /* private fields */ }Implementations§
Source§impl KeybindingPanelState
impl KeybindingPanelState
pub fn is_open(&self) -> bool
pub fn open(&mut self)
pub fn close(&mut self)
pub fn toggle(&mut self)
pub fn scroll(&self) -> usize
pub fn scroll_by(&mut self, delta: isize)
pub fn area(&self) -> Option<Rect>
pub fn contains(&self, column: u16, row: u16) -> bool
pub fn record_layout( &mut self, area: Rect, total_rows: usize, viewport_rows: usize, )
pub fn clear_layout(&mut self)
Trait Implementations§
Source§impl Clone for KeybindingPanelState
impl Clone for KeybindingPanelState
Source§fn clone(&self) -> KeybindingPanelState
fn clone(&self) -> KeybindingPanelState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeybindingPanelState
impl Debug for KeybindingPanelState
Source§impl Default for KeybindingPanelState
impl Default for KeybindingPanelState
Source§fn default() -> KeybindingPanelState
fn default() -> KeybindingPanelState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KeybindingPanelState
impl RefUnwindSafe for KeybindingPanelState
impl Send for KeybindingPanelState
impl Sync for KeybindingPanelState
impl Unpin for KeybindingPanelState
impl UnsafeUnpin for KeybindingPanelState
impl UnwindSafe for KeybindingPanelState
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> 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