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