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