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