pub struct Resolved {
pub scancode: Scancode,
pub keycode: Keycode,
pub glyph_en: Cow<'static, str>,
pub glyph_local: Cow<'static, str>,
pub character: Option<char>,
pub named_key: Option<NamedKey>,
pub layout: &'static str,
}Expand description
Every parallel representation of a key press, computed in a single pass.
Returned by resolve.
Fields§
§scancode: Scancode§keycode: Keycode§glyph_en: Cow<'static, str>Localized glyph in English ("Esc", "Up", "a", …) — style-aware.
glyph_local: Cow<'static, str>Localized glyph in the requested locale — style-aware.
character: Option<char>Produced Unicode character, if the key produces one at the current
modifier level. None for named keys like Escape / arrows / F-keys.
named_key: Option<NamedKey>Named-key identity, if this key is non-printable. None for
character-producing keys.
layout: &'static strLayout id echoed back — lets callers correlate results.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resolved
impl RefUnwindSafe for Resolved
impl Send for Resolved
impl Sync for Resolved
impl Unpin for Resolved
impl UnsafeUnpin for Resolved
impl UnwindSafe for Resolved
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