#[repr(transparent)]pub struct Lock(pub u32);Expand description
Lock register
Tuple Fields§
§0: u32Implementations§
Source§impl Lock
impl Lock
Sourcepub const fn set_lockreg0(&mut self, val: bool)
pub const fn set_lockreg0(&mut self, val: bool)
Lock Region 0 registers.
Sourcepub const fn set_lockreg1(&mut self, val: bool)
pub const fn set_lockreg1(&mut self, val: bool)
Lock Region 1 registers.
Sourcepub const fn set_lockreg2(&mut self, val: bool)
pub const fn set_lockreg2(&mut self, val: bool)
Lock Region 2 registers.
Sourcepub const fn set_lockmask(&mut self, val: bool)
pub const fn set_lockmask(&mut self, val: bool)
Lock the Mask registers.
Trait Implementations§
impl Copy for Lock
impl Eq for Lock
impl StructuralPartialEq for Lock
Auto Trait Implementations§
impl Freeze for Lock
impl RefUnwindSafe for Lock
impl Send for Lock
impl Sync for Lock
impl Unpin for Lock
impl UnwindSafe for Lock
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