#[repr(u8)]pub enum Usb1VbusDetectSetVbusvalidThresh {
VALUE0 = 0,
VALUE1 = 1,
VALUE2 = 2,
VALUE3 = 3,
VALUE4 = 4,
VALUE5 = 5,
VALUE6 = 6,
VALUE7 = 7,
}Variants§
VALUE0 = 0
4.0V
VALUE1 = 1
4.1V
VALUE2 = 2
4.2V
VALUE3 = 3
4.3V
VALUE4 = 4
4.4V(Default)
VALUE5 = 5
4.5V
VALUE6 = 6
4.6V
VALUE7 = 7
4.7V
Implementations§
Trait Implementations§
Source§impl Clone for Usb1VbusDetectSetVbusvalidThresh
impl Clone for Usb1VbusDetectSetVbusvalidThresh
Source§fn clone(&self) -> Usb1VbusDetectSetVbusvalidThresh
fn clone(&self) -> Usb1VbusDetectSetVbusvalidThresh
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<Usb1VbusDetectSetVbusvalidThresh> for u8
impl From<Usb1VbusDetectSetVbusvalidThresh> for u8
Source§fn from(val: Usb1VbusDetectSetVbusvalidThresh) -> u8
fn from(val: Usb1VbusDetectSetVbusvalidThresh) -> u8
Converts to this type from the input type.
Source§impl From<u8> for Usb1VbusDetectSetVbusvalidThresh
impl From<u8> for Usb1VbusDetectSetVbusvalidThresh
Source§fn from(val: u8) -> Usb1VbusDetectSetVbusvalidThresh
fn from(val: u8) -> Usb1VbusDetectSetVbusvalidThresh
Converts to this type from the input type.
Source§impl Ord for Usb1VbusDetectSetVbusvalidThresh
impl Ord for Usb1VbusDetectSetVbusvalidThresh
Source§fn cmp(&self, other: &Usb1VbusDetectSetVbusvalidThresh) -> Ordering
fn cmp(&self, other: &Usb1VbusDetectSetVbusvalidThresh) -> 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 Usb1VbusDetectSetVbusvalidThresh
impl PartialEq for Usb1VbusDetectSetVbusvalidThresh
Source§fn eq(&self, other: &Usb1VbusDetectSetVbusvalidThresh) -> bool
fn eq(&self, other: &Usb1VbusDetectSetVbusvalidThresh) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Usb1VbusDetectSetVbusvalidThresh
impl PartialOrd for Usb1VbusDetectSetVbusvalidThresh
impl Copy for Usb1VbusDetectSetVbusvalidThresh
impl Eq for Usb1VbusDetectSetVbusvalidThresh
impl StructuralPartialEq for Usb1VbusDetectSetVbusvalidThresh
Auto Trait Implementations§
impl Freeze for Usb1VbusDetectSetVbusvalidThresh
impl RefUnwindSafe for Usb1VbusDetectSetVbusvalidThresh
impl Send for Usb1VbusDetectSetVbusvalidThresh
impl Sync for Usb1VbusDetectSetVbusvalidThresh
impl Unpin for Usb1VbusDetectSetVbusvalidThresh
impl UnwindSafe for Usb1VbusDetectSetVbusvalidThresh
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