Enum icu_calendar::week_of::RelativeWeek
source · enum RelativeWeek {
LastWeekOfPreviousUnit,
WeekOfCurrentUnit(u16),
FirstWeekOfNextUnit,
}
Expand description
Which year or month that a calendar assigns a week to relative to the year/month the week is in.
Variants§
LastWeekOfPreviousUnit
A week that is assigned to the last week of the previous year/month. e.g. 2021-01-01 is week 54 of 2020 per the ISO calendar.
WeekOfCurrentUnit(u16)
A week that’s assigned to the current year/month. The offset is 1-based. e.g. 2021-01-11 is week 2 of 2021 per the ISO calendar so would be WeekOfCurrentUnit(2).
FirstWeekOfNextUnit
A week that is assigned to the first week of the next year/month. e.g. 2019-12-31 is week 1 of 2020 per the ISO calendar.
Trait Implementations§
source§impl Clone for RelativeWeek
impl Clone for RelativeWeek
source§fn clone(&self) -> RelativeWeek
fn clone(&self) -> RelativeWeek
Returns a copy 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 RelativeWeek
impl Debug for RelativeWeek
source§impl PartialEq for RelativeWeek
impl PartialEq for RelativeWeek
impl Copy for RelativeWeek
impl StructuralPartialEq for RelativeWeek
Auto Trait Implementations§
impl Freeze for RelativeWeek
impl RefUnwindSafe for RelativeWeek
impl Send for RelativeWeek
impl Sync for RelativeWeek
impl Unpin for RelativeWeek
impl UnwindSafe for RelativeWeek
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)