Enum stm32_metapac::comp::vals::PowerMode
#[repr(u8)]pub enum PowerMode {
HIGHSPEED = 0,
MEDIUMSPEED = 1,
_RESERVED_2 = 2,
ULTRALOW = 3,
}
Variants§
HIGHSPEED = 0
High speed / full power.
MEDIUMSPEED = 1
Medium speed / medium power.
_RESERVED_2 = 2
ULTRALOW = 3
Very-low speed / ultra-low power.
Implementations§
Trait Implementations§
§impl Ord for PowerMode
impl Ord for PowerMode
§impl PartialOrd for PowerMode
impl PartialOrd for PowerMode
§fn partial_cmp(&self, other: &PowerMode) -> Option<Ordering>
fn partial_cmp(&self, other: &PowerMode) -> 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 PowerMode
impl Eq for PowerMode
impl StructuralEq for PowerMode
impl StructuralPartialEq for PowerMode
Auto Trait Implementations§
impl RefUnwindSafe for PowerMode
impl Send for PowerMode
impl Sync for PowerMode
impl Unpin for PowerMode
impl UnwindSafe for PowerMode
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