#[repr(u8)]pub enum Weekday {
Monday = 0,
Tuesday = 1,
Wednesday = 2,
Thursday = 3,
Friday = 4,
Saturday = 5,
Sunday = 6,
}
Variants§
Trait Implementations§
source§impl AddAssign<u8> for Weekday
impl AddAssign<u8> for Weekday
source§fn add_assign(&mut self, rhs: u8)
fn add_assign(&mut self, rhs: u8)
Performs the
+=
operation. Read moresource§impl<'de> Deserialize<'de> for Weekday
impl<'de> Deserialize<'de> for Weekday
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl LowerHex for Weekday
impl LowerHex for Weekday
LowerHex allows printing the week day in its shortened form in English
source§impl Ord for Weekday
impl Ord for Weekday
source§impl PartialEq for Weekday
impl PartialEq for Weekday
source§impl PartialOrd for Weekday
impl PartialOrd for Weekday
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 moresource§impl SubAssign<u8> for Weekday
impl SubAssign<u8> for Weekday
source§fn sub_assign(&mut self, rhs: u8)
fn sub_assign(&mut self, rhs: u8)
Performs the
-=
operation. Read moreimpl Copy for Weekday
impl Eq for Weekday
impl StructuralEq for Weekday
impl StructuralPartialEq for Weekday
Auto Trait Implementations§
impl RefUnwindSafe for Weekday
impl Send for Weekday
impl Sync for Weekday
impl Unpin for Weekday
impl UnwindSafe for Weekday
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