pub struct Layout {
pub id: &'static str,
pub display_name: &'static str,
pub platform: Platform,
pub language: &'static str,
pub named_keys: &'static [LayoutKey],
pub printable_keys: &'static [LayoutKey],
}Expand description
A complete keyboard layout.
Fields§
§id: &'static strLayout identifier — "<platform>/<BCP 47>-t-k0-<variant>".
display_name: &'static strDisplay name suitable for UIs (e.g. "French (AZERTY)").
platform: PlatformHost platform this layout was designed for.
language: &'static strPrimary language subtag — helps match a UI locale to this layout.
named_keys: &'static [LayoutKey]Non-printable named keys — usually the STD_NAMED_KEYS constant.
printable_keys: &'static [LayoutKey]Character-producing keys — layout-specific.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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