#[repr(u8)]pub enum Usb1VbusDetectSetDischargeVbus {
VALUE0 = 0,
VALUE1 = 1,
}Variants§
VALUE0 = 0
VBUS discharge resistor is disabled (Default)
VALUE1 = 1
VBUS discharge resistor is enabled
Implementations§
Trait Implementations§
Source§impl Clone for Usb1VbusDetectSetDischargeVbus
impl Clone for Usb1VbusDetectSetDischargeVbus
Source§fn clone(&self) -> Usb1VbusDetectSetDischargeVbus
fn clone(&self) -> Usb1VbusDetectSetDischargeVbus
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 From<Usb1VbusDetectSetDischargeVbus> for u8
impl From<Usb1VbusDetectSetDischargeVbus> for u8
Source§fn from(val: Usb1VbusDetectSetDischargeVbus) -> u8
fn from(val: Usb1VbusDetectSetDischargeVbus) -> u8
Converts to this type from the input type.
Source§impl From<u8> for Usb1VbusDetectSetDischargeVbus
impl From<u8> for Usb1VbusDetectSetDischargeVbus
Source§fn from(val: u8) -> Usb1VbusDetectSetDischargeVbus
fn from(val: u8) -> Usb1VbusDetectSetDischargeVbus
Converts to this type from the input type.
Source§impl Ord for Usb1VbusDetectSetDischargeVbus
impl Ord for Usb1VbusDetectSetDischargeVbus
Source§fn cmp(&self, other: &Usb1VbusDetectSetDischargeVbus) -> Ordering
fn cmp(&self, other: &Usb1VbusDetectSetDischargeVbus) -> 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 PartialEq for Usb1VbusDetectSetDischargeVbus
impl PartialEq for Usb1VbusDetectSetDischargeVbus
Source§fn eq(&self, other: &Usb1VbusDetectSetDischargeVbus) -> bool
fn eq(&self, other: &Usb1VbusDetectSetDischargeVbus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Usb1VbusDetectSetDischargeVbus
impl PartialOrd for Usb1VbusDetectSetDischargeVbus
impl Copy for Usb1VbusDetectSetDischargeVbus
impl Eq for Usb1VbusDetectSetDischargeVbus
impl StructuralPartialEq for Usb1VbusDetectSetDischargeVbus
Auto Trait Implementations§
impl Freeze for Usb1VbusDetectSetDischargeVbus
impl RefUnwindSafe for Usb1VbusDetectSetDischargeVbus
impl Send for Usb1VbusDetectSetDischargeVbus
impl Sync for Usb1VbusDetectSetDischargeVbus
impl Unpin for Usb1VbusDetectSetDischargeVbus
impl UnwindSafe for Usb1VbusDetectSetDischargeVbus
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