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