pub struct IsoWeek { /* private fields */ }Expand description
An ISO 8601 week date: an ISO year and a week number in 1..=53.
The ISO year can differ from the calendar year for the first days of
January and the last days of December (e.g. 2021-01-01 is ISO week
2020-W53).
Implementations§
Source§impl IsoWeek
impl IsoWeek
Sourcepub fn monday(self) -> Result<Date>
pub fn monday(self) -> Result<Date>
The Monday that starts this week, as a calendar date.
The resulting date lives in the ISO year (which may differ from the calendar year at the boundaries).
Sourcepub const fn first_weekday(self) -> Weekday
pub const fn first_weekday(self) -> Weekday
The weekday of the Monday of this week (always the week’s first day).
Trait Implementations§
impl Copy for IsoWeek
impl Eq for IsoWeek
Source§impl Ord for IsoWeek
impl Ord for IsoWeek
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for IsoWeek
impl PartialOrd for IsoWeek
impl StructuralPartialEq for IsoWeek
Auto Trait Implementations§
impl Freeze for IsoWeek
impl RefUnwindSafe for IsoWeek
impl Send for IsoWeek
impl Sync for IsoWeek
impl Unpin for IsoWeek
impl UnsafeUnpin for IsoWeek
impl UnwindSafe for IsoWeek
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