pub struct KeyBind<B: Backend + 'static> {
pub pressed: &'static [KeyPress<B>],
pub description: &'static str,
}Expand description
Key binding metadata, including the handled key presses and a description of behaviour
Fields§
§pressed: &'static [KeyPress<B>]The key press event handlded by this binding
description: &'static strA brief description of the expected behaviour
Auto Trait Implementations§
impl<B> Freeze for KeyBind<B>
impl<B> RefUnwindSafe for KeyBind<B>
impl<B> Send for KeyBind<B>
impl<B> Sync for KeyBind<B>
impl<B> Unpin for KeyBind<B>
impl<B> UnsafeUnpin for KeyBind<B>
impl<B> UnwindSafe for KeyBind<B>
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