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