#[repr(transparent)]pub struct Keyreset(pub u32);Expand description
Reinitialize Keys shift registers counters
Tuple Fields§
§0: u32Implementations§
Source§impl Keyreset
impl Keyreset
Sourcepub const fn key0(&self) -> u8
pub const fn key0(&self) -> u8
10: Reset KEY0 shift register. Self clearing. Must be done before loading any new key.
Sourcepub const fn set_key0(&mut self, val: u8)
pub const fn set_key0(&mut self, val: u8)
10: Reset KEY0 shift register. Self clearing. Must be done before loading any new key.
Sourcepub const fn key1(&self) -> u8
pub const fn key1(&self) -> u8
10: Reset KEY1 shift register. Self clearing. Must be done before loading any new key.
Sourcepub const fn set_key1(&mut self, val: u8)
pub const fn set_key1(&mut self, val: u8)
10: Reset KEY1 shift register. Self clearing. Must be done before loading any new key.
Sourcepub const fn key2(&self) -> u8
pub const fn key2(&self) -> u8
10: Reset KEY2 shift register. Self clearing. Must be done before loading any new key.
Sourcepub const fn set_key2(&mut self, val: u8)
pub const fn set_key2(&mut self, val: u8)
10: Reset KEY2 shift register. Self clearing. Must be done before loading any new key.
Trait Implementations§
impl Copy for Keyreset
impl Eq for Keyreset
impl StructuralPartialEq for Keyreset
Auto Trait Implementations§
impl Freeze for Keyreset
impl RefUnwindSafe for Keyreset
impl Send for Keyreset
impl Sync for Keyreset
impl Unpin for Keyreset
impl UnwindSafe for Keyreset
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