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