#[repr(u8)]pub enum OtgIdValue {
ID_HOST = 0,
ID_DEVICE = 1,
}Variants§
Implementations§
Source§impl OtgIdValue
impl OtgIdValue
Trait Implementations§
Source§impl Clone for OtgIdValue
impl Clone for OtgIdValue
Source§fn clone(&self) -> OtgIdValue
fn clone(&self) -> OtgIdValue
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 OtgIdValue
impl Debug for OtgIdValue
Source§impl From<OtgIdValue> for u8
impl From<OtgIdValue> for u8
Source§fn from(val: OtgIdValue) -> u8
fn from(val: OtgIdValue) -> u8
Converts to this type from the input type.
Source§impl From<u8> for OtgIdValue
impl From<u8> for OtgIdValue
Source§fn from(val: u8) -> OtgIdValue
fn from(val: u8) -> OtgIdValue
Converts to this type from the input type.
Source§impl Ord for OtgIdValue
impl Ord for OtgIdValue
Source§fn cmp(&self, other: &OtgIdValue) -> Ordering
fn cmp(&self, other: &OtgIdValue) -> 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 OtgIdValue
impl PartialEq for OtgIdValue
Source§impl PartialOrd for OtgIdValue
impl PartialOrd for OtgIdValue
impl Copy for OtgIdValue
impl Eq for OtgIdValue
impl StructuralPartialEq for OtgIdValue
Auto Trait Implementations§
impl Freeze for OtgIdValue
impl RefUnwindSafe for OtgIdValue
impl Send for OtgIdValue
impl Sync for OtgIdValue
impl Unpin for OtgIdValue
impl UnwindSafe for OtgIdValue
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