pub struct Update<'a>(pub &'a mut State);
Tuple Fields§
§0: &'a mut State
Implementations§
Source§impl<'a> Update<'a>
impl<'a> Update<'a>
pub fn key(&mut self, key: Keycode, direction: Direction) -> Components
pub fn mask<M1, M2, M3, L1, L2, L3>(
&mut self,
depressed_mods: M1,
latched_mods: M2,
locked_mods: M3,
depressed_layout: L1,
latched_layout: L2,
locked_layout: L3,
) -> Componentswhere
M1: Into<ModMask>,
M2: Into<ModMask>,
M3: Into<ModMask>,
L1: Into<LayoutMask>,
L2: Into<LayoutMask>,
L3: Into<LayoutMask>,
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Update<'a>
impl<'a> RefUnwindSafe for Update<'a>
impl<'a> !Send for Update<'a>
impl<'a> !Sync for Update<'a>
impl<'a> Unpin for Update<'a>
impl<'a> !UnwindSafe for Update<'a>
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