#[repr(transparent)]pub struct Keylock(pub u32);Expand description
Key Lock
Tuple Fields§
§0: u32Implementations§
Source§impl Keylock
impl Keylock
Sourcepub const fn key0(&self) -> KeylockKey0
pub const fn key0(&self) -> KeylockKey0
Key 0
Sourcepub const fn set_key0(&mut self, val: KeylockKey0)
pub const fn set_key0(&mut self, val: KeylockKey0)
Key 0
Sourcepub const fn key1(&self) -> KeylockKey1
pub const fn key1(&self) -> KeylockKey1
Key 1
Sourcepub const fn set_key1(&mut self, val: KeylockKey1)
pub const fn set_key1(&mut self, val: KeylockKey1)
Key 1
Sourcepub const fn key2(&self) -> KeylockKey2
pub const fn key2(&self) -> KeylockKey2
Key 2
Sourcepub const fn set_key2(&mut self, val: KeylockKey2)
pub const fn set_key2(&mut self, val: KeylockKey2)
Key 2
Sourcepub const fn key3(&self) -> KeylockKey3
pub const fn key3(&self) -> KeylockKey3
Key 3
Sourcepub const fn set_key3(&mut self, val: KeylockKey3)
pub const fn set_key3(&mut self, val: KeylockKey3)
Key 3
Trait Implementations§
impl Copy for Keylock
impl Eq for Keylock
impl StructuralPartialEq for Keylock
Auto Trait Implementations§
impl Freeze for Keylock
impl RefUnwindSafe for Keylock
impl Send for Keylock
impl Sync for Keylock
impl Unpin for Keylock
impl UnwindSafe for Keylock
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