Enum stm32_metapac::ucpd::vals::Ccenable
#[repr(u8)]pub enum Ccenable {
DISABLED = 0,
CC1 = 1,
CC2 = 2,
BOTH = 3,
}
Variants§
DISABLED = 0
Disable both PHYs
CC1 = 1
Enable CC1 PHY
CC2 = 2
Enable CC2 PHY
BOTH = 3
Enable CC1 and CC2 PHY
Implementations§
Trait Implementations§
§impl Ord for Ccenable
impl Ord for Ccenable
§impl PartialEq for Ccenable
impl PartialEq for Ccenable
§impl PartialOrd for Ccenable
impl PartialOrd for Ccenable
§fn partial_cmp(&self, other: &Ccenable) -> Option<Ordering>
fn partial_cmp(&self, other: &Ccenable) -> 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 Ccenable
impl Eq for Ccenable
impl StructuralEq for Ccenable
impl StructuralPartialEq for Ccenable
Auto Trait Implementations§
impl RefUnwindSafe for Ccenable
impl Send for Ccenable
impl Sync for Ccenable
impl Unpin for Ccenable
impl UnwindSafe for Ccenable
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