Enum stm32_metapac::ucpd::vals::TypecVstateCc
#[repr(u8)]pub enum TypecVstateCc {
LOWEST = 0,
LOW = 1,
HIGH = 2,
HIGHEST = 3,
}
Variants§
Implementations§
§impl TypecVstateCc
impl TypecVstateCc
pub const fn from_bits(val: u8) -> TypecVstateCc
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for TypecVstateCc
impl Clone for TypecVstateCc
§fn clone(&self) -> TypecVstateCc
fn clone(&self) -> TypecVstateCc
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<TypecVstateCc> for u8
impl From<TypecVstateCc> for u8
§fn from(val: TypecVstateCc) -> u8
fn from(val: TypecVstateCc) -> u8
Converts to this type from the input type.
§impl From<u8> for TypecVstateCc
impl From<u8> for TypecVstateCc
§fn from(val: u8) -> TypecVstateCc
fn from(val: u8) -> TypecVstateCc
Converts to this type from the input type.
§impl Ord for TypecVstateCc
impl Ord for TypecVstateCc
§impl PartialEq for TypecVstateCc
impl PartialEq for TypecVstateCc
§fn eq(&self, other: &TypecVstateCc) -> bool
fn eq(&self, other: &TypecVstateCc) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for TypecVstateCc
impl PartialOrd for TypecVstateCc
§fn partial_cmp(&self, other: &TypecVstateCc) -> Option<Ordering>
fn partial_cmp(&self, other: &TypecVstateCc) -> 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 TypecVstateCc
impl Eq for TypecVstateCc
impl StructuralEq for TypecVstateCc
impl StructuralPartialEq for TypecVstateCc
Auto Trait Implementations§
impl RefUnwindSafe for TypecVstateCc
impl Send for TypecVstateCc
impl Sync for TypecVstateCc
impl Unpin for TypecVstateCc
impl UnwindSafe for TypecVstateCc
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