#[repr(u8)]pub enum Usb1VbusDetectSetPwrupCmps {
PWRUP_CMPS_0 = 0,
PWRUP_CMPS_1 = 1,
}Variants§
PWRUP_CMPS_0 = 0
Powers down the VBUS_VALID comparator
PWRUP_CMPS_1 = 1
Enables the VBUS_VALID comparator (default)
Implementations§
Trait Implementations§
Source§impl Clone for Usb1VbusDetectSetPwrupCmps
impl Clone for Usb1VbusDetectSetPwrupCmps
Source§fn clone(&self) -> Usb1VbusDetectSetPwrupCmps
fn clone(&self) -> Usb1VbusDetectSetPwrupCmps
Returns a duplicate 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 moreSource§impl Debug for Usb1VbusDetectSetPwrupCmps
impl Debug for Usb1VbusDetectSetPwrupCmps
Source§impl From<Usb1VbusDetectSetPwrupCmps> for u8
impl From<Usb1VbusDetectSetPwrupCmps> for u8
Source§fn from(val: Usb1VbusDetectSetPwrupCmps) -> u8
fn from(val: Usb1VbusDetectSetPwrupCmps) -> u8
Converts to this type from the input type.
Source§impl From<u8> for Usb1VbusDetectSetPwrupCmps
impl From<u8> for Usb1VbusDetectSetPwrupCmps
Source§fn from(val: u8) -> Usb1VbusDetectSetPwrupCmps
fn from(val: u8) -> Usb1VbusDetectSetPwrupCmps
Converts to this type from the input type.
Source§impl Ord for Usb1VbusDetectSetPwrupCmps
impl Ord for Usb1VbusDetectSetPwrupCmps
Source§fn cmp(&self, other: &Usb1VbusDetectSetPwrupCmps) -> Ordering
fn cmp(&self, other: &Usb1VbusDetectSetPwrupCmps) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Usb1VbusDetectSetPwrupCmps
impl PartialOrd for Usb1VbusDetectSetPwrupCmps
impl Copy for Usb1VbusDetectSetPwrupCmps
impl Eq for Usb1VbusDetectSetPwrupCmps
impl StructuralPartialEq for Usb1VbusDetectSetPwrupCmps
Auto Trait Implementations§
impl Freeze for Usb1VbusDetectSetPwrupCmps
impl RefUnwindSafe for Usb1VbusDetectSetPwrupCmps
impl Send for Usb1VbusDetectSetPwrupCmps
impl Sync for Usb1VbusDetectSetPwrupCmps
impl Unpin for Usb1VbusDetectSetPwrupCmps
impl UnwindSafe for Usb1VbusDetectSetPwrupCmps
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