Enum stm32_metapac::flash::vals::OptsrSwapBank
#[repr(u8)]pub enum OptsrSwapBank {
B_0X0 = 0,
B_0X1 = 1,
}
Variants§
Implementations§
§impl OptsrSwapBank
impl OptsrSwapBank
pub const fn from_bits(val: u8) -> OptsrSwapBank
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for OptsrSwapBank
impl Clone for OptsrSwapBank
§fn clone(&self) -> OptsrSwapBank
fn clone(&self) -> OptsrSwapBank
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<OptsrSwapBank> for u8
impl From<OptsrSwapBank> for u8
§fn from(val: OptsrSwapBank) -> u8
fn from(val: OptsrSwapBank) -> u8
Converts to this type from the input type.
§impl From<u8> for OptsrSwapBank
impl From<u8> for OptsrSwapBank
§fn from(val: u8) -> OptsrSwapBank
fn from(val: u8) -> OptsrSwapBank
Converts to this type from the input type.
§impl Ord for OptsrSwapBank
impl Ord for OptsrSwapBank
§impl PartialEq for OptsrSwapBank
impl PartialEq for OptsrSwapBank
§fn eq(&self, other: &OptsrSwapBank) -> bool
fn eq(&self, other: &OptsrSwapBank) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for OptsrSwapBank
impl PartialOrd for OptsrSwapBank
§fn partial_cmp(&self, other: &OptsrSwapBank) -> Option<Ordering>
fn partial_cmp(&self, other: &OptsrSwapBank) -> 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 OptsrSwapBank
impl Eq for OptsrSwapBank
impl StructuralEq for OptsrSwapBank
impl StructuralPartialEq for OptsrSwapBank
Auto Trait Implementations§
impl RefUnwindSafe for OptsrSwapBank
impl Send for OptsrSwapBank
impl Sync for OptsrSwapBank
impl Unpin for OptsrSwapBank
impl UnwindSafe for OptsrSwapBank
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