Enum stm32_metapac::hrtim::vals::Reseteffect
#[repr(u8)]pub enum Reseteffect {
NOEFFECT = 0,
RESETCOUNTER = 1,
}
Variants§
NOEFFECT = 0
Timer Y compare Z event has no effect
RESETCOUNTER = 1
Timer X counter is reset upon timer Y compare Z event
Implementations§
§impl Reseteffect
impl Reseteffect
pub const fn from_bits(val: u8) -> Reseteffect
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Reseteffect
impl Clone for Reseteffect
§fn clone(&self) -> Reseteffect
fn clone(&self) -> Reseteffect
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<Reseteffect> for u8
impl From<Reseteffect> for u8
§fn from(val: Reseteffect) -> u8
fn from(val: Reseteffect) -> u8
Converts to this type from the input type.
§impl From<u8> for Reseteffect
impl From<u8> for Reseteffect
§fn from(val: u8) -> Reseteffect
fn from(val: u8) -> Reseteffect
Converts to this type from the input type.
§impl Ord for Reseteffect
impl Ord for Reseteffect
§impl PartialEq for Reseteffect
impl PartialEq for Reseteffect
§fn eq(&self, other: &Reseteffect) -> bool
fn eq(&self, other: &Reseteffect) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for Reseteffect
impl PartialOrd for Reseteffect
§fn partial_cmp(&self, other: &Reseteffect) -> Option<Ordering>
fn partial_cmp(&self, other: &Reseteffect) -> 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 Reseteffect
impl Eq for Reseteffect
impl StructuralEq for Reseteffect
impl StructuralPartialEq for Reseteffect
Auto Trait Implementations§
impl RefUnwindSafe for Reseteffect
impl Send for Reseteffect
impl Sync for Reseteffect
impl Unpin for Reseteffect
impl UnwindSafe for Reseteffect
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