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