Enum stm32_metapac::rcc::vals::Lpusartsel
#[repr(u8)]pub enum Lpusartsel {
PCLK3 = 0,
SYS = 1,
HSI = 2,
LSE = 3,
MSIK = 4,
_RESERVED_5 = 5,
_RESERVED_6 = 6,
_RESERVED_7 = 7,
}
Variants§
PCLK3 = 0
PCLK3 selected
SYS = 1
SYSCLK selected
HSI = 2
HSI selected
LSE = 3
LSE selected
MSIK = 4
MSIK selected
_RESERVED_5 = 5
_RESERVED_6 = 6
_RESERVED_7 = 7
Implementations§
§impl Lpusartsel
impl Lpusartsel
pub const fn from_bits(val: u8) -> Lpusartsel
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Lpusartsel
impl Clone for Lpusartsel
§fn clone(&self) -> Lpusartsel
fn clone(&self) -> Lpusartsel
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<Lpusartsel> for u8
impl From<Lpusartsel> for u8
§fn from(val: Lpusartsel) -> u8
fn from(val: Lpusartsel) -> u8
Converts to this type from the input type.
§impl From<u8> for Lpusartsel
impl From<u8> for Lpusartsel
§fn from(val: u8) -> Lpusartsel
fn from(val: u8) -> Lpusartsel
Converts to this type from the input type.
§impl Ord for Lpusartsel
impl Ord for Lpusartsel
§impl PartialEq for Lpusartsel
impl PartialEq for Lpusartsel
§fn eq(&self, other: &Lpusartsel) -> bool
fn eq(&self, other: &Lpusartsel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for Lpusartsel
impl PartialOrd for Lpusartsel
§fn partial_cmp(&self, other: &Lpusartsel) -> Option<Ordering>
fn partial_cmp(&self, other: &Lpusartsel) -> 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 Lpusartsel
impl Eq for Lpusartsel
impl StructuralEq for Lpusartsel
impl StructuralPartialEq for Lpusartsel
Auto Trait Implementations§
impl RefUnwindSafe for Lpusartsel
impl Send for Lpusartsel
impl Sync for Lpusartsel
impl Unpin for Lpusartsel
impl UnwindSafe for Lpusartsel
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