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
§impl PartialOrd for Prediv1src
impl PartialOrd for Prediv1src
impl Copy for Prediv1src
impl Eq for Prediv1src
impl StructuralPartialEq for Prediv1src
Auto Trait Implementations§
impl Freeze for Prediv1src
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)