pub struct LayoutKey {
pub scancode: Scancode,
pub base: Option<char>,
pub shift: Option<char>,
pub altgr: Option<char>,
pub shift_altgr: Option<char>,
pub named: Option<NamedKey>,
}Expand description
One physical key within a Layout.
Fields§
§scancode: Scancode§base: Option<char>Glyph produced at the base (unshifted) level. None means the key
has no printable output at that level.
shift: Option<char>Glyph produced with Shift held.
altgr: Option<char>Glyph produced with AltGr (KMOD_MODE or RALT) held.
shift_altgr: Option<char>Glyph produced with Shift + AltGr held.
named: Option<NamedKey>Named-key identity for keys that are not character-producing
(Escape, arrows, F-keys, …). None means the key is printable.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayoutKey
impl RefUnwindSafe for LayoutKey
impl Send for LayoutKey
impl Sync for LayoutKey
impl Unpin for LayoutKey
impl UnsafeUnpin for LayoutKey
impl UnwindSafe for LayoutKey
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