Enum Linestate
#[repr(u8)]pub enum Linestate {
Ls1 = 0,
Ls2 = 1,
Ls3 = 2,
Ls4 = 3,
}Variants§
Ls1 = 0
Linestate on USB: DM = 0, DP = 0.
Ls2 = 1
Linestate on USB: DM = 0, DP = 1.
Ls3 = 2
Linestate on USB: DM = 1, DP = 0.
Ls4 = 3
Linestate on USB: Not-defined.
Implementations§
Trait Implementations§
impl Copy for Linestate
impl Eq for Linestate
§impl Ord for Linestate
impl Ord for Linestate
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
§impl PartialOrd for Linestate
impl PartialOrd for Linestate
impl StructuralPartialEq for Linestate
Auto Trait Implementations§
impl Forget for Linestate
impl Freeze for Linestate
impl Move for Linestate
impl RefUnwindSafe for Linestate
impl Send for Linestate
impl Sync for Linestate
impl Unpin for Linestate
impl UnsafeUnpin for Linestate
impl UnwindSafe for Linestate
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