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