Struct Privcr
#[repr(transparent)]pub struct Privcr(pub u32);Expand description
Privilege mode control register
Tuple Fields§
§0: u32Implementations§
§impl Privcr
impl Privcr
pub const fn set_alrpriv(&mut self, n: usize, val: bool)
pub const fn set_alrpriv(&mut self, n: usize, val: bool)
ALRPRIV
pub const fn set_wutpriv(&mut self, val: bool)
pub const fn set_wutpriv(&mut self, val: bool)
WUTPRIV
pub const fn set_tspriv(&mut self, val: bool)
pub const fn set_tspriv(&mut self, val: bool)
TSPRIV
pub const fn set_calpriv(&mut self, val: bool)
pub const fn set_calpriv(&mut self, val: bool)
CALPRIV
pub const fn set_initpriv(&mut self, val: bool)
pub const fn set_initpriv(&mut self, val: bool)
INITPRIV
Trait Implementations§
impl Copy for Privcr
impl Eq for Privcr
impl StructuralPartialEq for Privcr
Auto Trait Implementations§
impl Freeze for Privcr
impl RefUnwindSafe for Privcr
impl Send for Privcr
impl Sync for Privcr
impl Unpin for Privcr
impl UnwindSafe for Privcr
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