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