pub struct DisplayInfo {
pub keys: Vec<KeyBinding>,
pub id: WidgetId,
pub name: &'static str,
}Expand description
Information about keybindings for display purposes.
Groups multiple keys that perform the same action together, along with the widget ID and action name for UI presentation.
Fields§
§keys: Vec<KeyBinding>§id: WidgetId§name: &'static strImplementations§
Source§impl DisplayInfo
impl DisplayInfo
Sourcepub fn keys_display(&self) -> String
pub fn keys_display(&self) -> String
Sourcepub fn keys_display_compact(&self) -> String
pub fn keys_display_compact(&self) -> String
Sourcepub fn keys_display_with(
&self,
formatter: impl Fn(&KeyBinding) -> String,
) -> String
pub fn keys_display_with( &self, formatter: impl Fn(&KeyBinding) -> String, ) -> String
Trait Implementations§
Auto Trait Implementations§
impl Forget for DisplayInfo
impl Freeze for DisplayInfo
impl RefUnwindSafe for DisplayInfo
impl Send for DisplayInfo
impl Sync for DisplayInfo
impl Unpin for DisplayInfo
impl UnsafeUnpin for DisplayInfo
impl UnwindSafe for DisplayInfo
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> 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