Enum stm32_metapac::flash::vals::SeccrBksel
#[repr(u8)]pub enum SeccrBksel {
B_0X0 = 0,
B_0X1 = 1,
}
Variants§
B_0X0 = 0
Bank1 is selected for Bank erase / sector erase / interrupt enable
B_0X1 = 1
Bank2 is selected for BER / SER
Implementations§
§impl SeccrBksel
impl SeccrBksel
pub const fn from_bits(val: u8) -> SeccrBksel
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for SeccrBksel
impl Clone for SeccrBksel
§fn clone(&self) -> SeccrBksel
fn clone(&self) -> SeccrBksel
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 From<SeccrBksel> for u8
impl From<SeccrBksel> for u8
§fn from(val: SeccrBksel) -> u8
fn from(val: SeccrBksel) -> u8
Converts to this type from the input type.
§impl From<u8> for SeccrBksel
impl From<u8> for SeccrBksel
§fn from(val: u8) -> SeccrBksel
fn from(val: u8) -> SeccrBksel
Converts to this type from the input type.
§impl Ord for SeccrBksel
impl Ord for SeccrBksel
§impl PartialEq for SeccrBksel
impl PartialEq for SeccrBksel
§fn eq(&self, other: &SeccrBksel) -> bool
fn eq(&self, other: &SeccrBksel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for SeccrBksel
impl PartialOrd for SeccrBksel
§fn partial_cmp(&self, other: &SeccrBksel) -> Option<Ordering>
fn partial_cmp(&self, other: &SeccrBksel) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SeccrBksel
impl Eq for SeccrBksel
impl StructuralEq for SeccrBksel
impl StructuralPartialEq for SeccrBksel
Auto Trait Implementations§
impl RefUnwindSafe for SeccrBksel
impl Send for SeccrBksel
impl Sync for SeccrBksel
impl Unpin for SeccrBksel
impl UnwindSafe for SeccrBksel
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