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