pub enum DayOfWeek {
Monday = 0,
Tuesday = 1,
Wednesday = 2,
Thursday = 3,
Friday = 4,
Saturday = 5,
Sunday = 6,
}Expand description
Day of the week enumeration, following ISO8601 convention of “Monday is the start of the week”
Variants§
Implementations§
Trait Implementations§
source§impl EnumIterItem for DayOfWeek
impl EnumIterItem for DayOfWeek
source§impl Ord for DayOfWeek
impl Ord for DayOfWeek
source§impl PartialEq for DayOfWeek
impl PartialEq for DayOfWeek
source§impl PartialOrd for DayOfWeek
impl PartialOrd for DayOfWeek
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 DayOfWeek
impl Eq for DayOfWeek
impl StructuralPartialEq for DayOfWeek
Auto Trait Implementations§
impl RefUnwindSafe for DayOfWeek
impl Send for DayOfWeek
impl Sync for DayOfWeek
impl Unpin for DayOfWeek
impl UnwindSafe for DayOfWeek
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