Enum stm32_metapac::ucpd::vals::Rxsopkinvalid
#[repr(u8)]pub enum Rxsopkinvalid {
NONE = 0,
FIRST = 1,
SECOND = 2,
THIRD = 3,
FOURTH = 4,
_RESERVED_5 = 5,
_RESERVED_6 = 6,
_RESERVED_7 = 7,
}
Variants§
NONE = 0
No K‑code corrupted
FIRST = 1
First K‑code corrupted
SECOND = 2
Second K‑code corrupted
THIRD = 3
Third K‑code corrupted
FOURTH = 4
Fourth K‑code corrupted
_RESERVED_5 = 5
_RESERVED_6 = 6
_RESERVED_7 = 7
Implementations§
§impl Rxsopkinvalid
impl Rxsopkinvalid
pub const fn from_bits(val: u8) -> Rxsopkinvalid
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Rxsopkinvalid
impl Clone for Rxsopkinvalid
§fn clone(&self) -> Rxsopkinvalid
fn clone(&self) -> Rxsopkinvalid
Returns a copy 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 more§impl From<Rxsopkinvalid> for u8
impl From<Rxsopkinvalid> for u8
§fn from(val: Rxsopkinvalid) -> u8
fn from(val: Rxsopkinvalid) -> u8
Converts to this type from the input type.
§impl From<u8> for Rxsopkinvalid
impl From<u8> for Rxsopkinvalid
§fn from(val: u8) -> Rxsopkinvalid
fn from(val: u8) -> Rxsopkinvalid
Converts to this type from the input type.
§impl Ord for Rxsopkinvalid
impl Ord for Rxsopkinvalid
§impl PartialEq for Rxsopkinvalid
impl PartialEq for Rxsopkinvalid
§fn eq(&self, other: &Rxsopkinvalid) -> bool
fn eq(&self, other: &Rxsopkinvalid) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for Rxsopkinvalid
impl PartialOrd for Rxsopkinvalid
§fn partial_cmp(&self, other: &Rxsopkinvalid) -> Option<Ordering>
fn partial_cmp(&self, other: &Rxsopkinvalid) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Rxsopkinvalid
impl Eq for Rxsopkinvalid
impl StructuralEq for Rxsopkinvalid
impl StructuralPartialEq for Rxsopkinvalid
Auto Trait Implementations§
impl RefUnwindSafe for Rxsopkinvalid
impl Send for Rxsopkinvalid
impl Sync for Rxsopkinvalid
impl Unpin for Rxsopkinvalid
impl UnwindSafe for Rxsopkinvalid
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