pub struct Entry {
pub code: KeyCode,
pub base: Output,
pub shift: Output,
pub altgr: Output,
pub shift_altgr: Output,
}Expand description
One physical position and what it types at each of four levels.
Fields§
§code: KeyCodeThe position this describes.
base: OutputUnmodified.
shift: OutputWith Shift.
altgr: OutputWith AltGr, the third level.
shift_altgr: OutputWith Shift and AltGr.
Implementations§
Source§impl Entry
impl Entry
Sourcepub const fn at(&self, shift: bool, level3: bool) -> Output
pub const fn at(&self, shift: bool, level3: bool) -> Output
What this position types at one combination of levels.
The same choice Composer makes internally, exposed so that an
on-screen keyboard can letter its keys with what pressing them would
actually produce — rather than reimplementing the rule and drifting from
it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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