Struct Eraseprotect
#[repr(transparent)]pub struct Eraseprotect(pub u32);
Expand description
Erase protection
Tuple Fields§
§0: u32
Implementations§
§impl Eraseprotect
impl Eraseprotect
pub const fn pall(&self) -> EraseprotectPall
pub const fn pall(&self) -> EraseprotectPall
Blocks NVMC ERASEALL and CTRLAP ERASEALL functionality. Using any value except Unprotected will lead to the protection being enabled.
pub fn set_pall(&mut self, val: EraseprotectPall)
pub fn set_pall(&mut self, val: EraseprotectPall)
Blocks NVMC ERASEALL and CTRLAP ERASEALL functionality. Using any value except Unprotected will lead to the protection being enabled.
Trait Implementations§
§impl Clone for Eraseprotect
impl Clone for Eraseprotect
§fn clone(&self) -> Eraseprotect
fn clone(&self) -> Eraseprotect
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Default for Eraseprotect
impl Default for Eraseprotect
§fn default() -> Eraseprotect
fn default() -> Eraseprotect
Returns the “default value” for a type. Read more
§impl PartialEq for Eraseprotect
impl PartialEq for Eraseprotect
impl Copy for Eraseprotect
impl Eq for Eraseprotect
impl StructuralPartialEq for Eraseprotect
Auto Trait Implementations§
impl Freeze for Eraseprotect
impl RefUnwindSafe for Eraseprotect
impl Send for Eraseprotect
impl Sync for Eraseprotect
impl Unpin for Eraseprotect
impl UnwindSafe for Eraseprotect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)