pub struct KeyHints {
pub common: Common,
pub hints: Vec<Hint>,
}Expand description
ratatui-style key hints line (§4.5.2): enter open · n new.
Fields§
§common: CommonCommon node props (key, style, block, fallback).
hints: Vec<Hint>Hints, in display order.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyHints
impl<'de> Deserialize<'de> for KeyHints
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for KeyHints
Source§impl WithCommon for KeyHints
impl WithCommon for KeyHints
Source§fn common_mut(&mut self) -> &mut Common
fn common_mut(&mut self) -> &mut Common
Mutable access to the node’s common props.
Source§fn block(self, block: impl Into<BlockProps>) -> Self
fn block(self, block: impl Into<BlockProps>) -> Self
Sets the surrounding block.
Auto Trait Implementations§
impl Freeze for KeyHints
impl RefUnwindSafe for KeyHints
impl Send for KeyHints
impl Sync for KeyHints
impl Unpin for KeyHints
impl UnsafeUnpin for KeyHints
impl UnwindSafe for KeyHints
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