pub enum WeekStartDay {
Monday,
Sunday,
}Expand description
Which day begins a week for period computations (“start of week”, “next week”, etc.).
Does not affect named-weekday expressions like “next Monday” or “last Friday”.
Variants§
Monday
ISO 8601 standard (Monday = day 0 of the week).
Sunday
US/Canada convention (Sunday = day 0 of the week).
Trait Implementations§
Source§impl Clone for WeekStartDay
impl Clone for WeekStartDay
Source§fn clone(&self) -> WeekStartDay
fn clone(&self) -> WeekStartDay
Returns a duplicate 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 moreSource§impl Debug for WeekStartDay
impl Debug for WeekStartDay
Source§impl Default for WeekStartDay
impl Default for WeekStartDay
Source§fn default() -> WeekStartDay
fn default() -> WeekStartDay
Returns the “default value” for a type. Read more
Source§impl PartialEq for WeekStartDay
impl PartialEq for WeekStartDay
Source§impl Serialize for WeekStartDay
impl Serialize for WeekStartDay
impl Copy for WeekStartDay
impl Eq for WeekStartDay
impl StructuralPartialEq for WeekStartDay
Auto Trait Implementations§
impl Freeze for WeekStartDay
impl RefUnwindSafe for WeekStartDay
impl Send for WeekStartDay
impl Sync for WeekStartDay
impl Unpin for WeekStartDay
impl UnsafeUnpin for WeekStartDay
impl UnwindSafe for WeekStartDay
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