#[repr(C)]pub enum DayOfWeek {
Monday = 0,
Tuesday = 1,
Wednesday = 2,
Thursday = 3,
Friday = 4,
Saturday = 5,
Sunday = 6,
}Expand description
Represents the seven days of the week
Variants§
Monday = 0
First day of the week
Tuesday = 1
Comes after Monday
Wednesday = 2
Middle of the week
Thursday = 3
Between Wednesday and Friday
Friday = 4
Almost the weekend
Saturday = 5
First day of the weekend
Sunday = 6
Last day of the week
Implementations§
Trait Implementations§
impl Eq for DayOfWeek
Source§impl Ord for DayOfWeek
impl Ord for DayOfWeek
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for DayOfWeek
impl PartialOrd for DayOfWeek
impl StructuralPartialEq for DayOfWeek
Auto Trait Implementations§
impl Freeze for DayOfWeek
impl RefUnwindSafe for DayOfWeek
impl Send for DayOfWeek
impl Sync for DayOfWeek
impl Unpin for DayOfWeek
impl UnsafeUnpin 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