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