Enum icu_calendar::week::RelativeUnit
source · pub enum RelativeUnit {
Previous,
Current,
Next,
}
Expand description
The year or month that a calendar assigns a week to relative to the year/month that it is in.
Variants§
Previous
A week that is assigned to previous year/month. e.g. 2021-01-01 is week 54 of 2020 per the ISO calendar.
Current
A week that’s assigned to the current year/month. e.g. 2021-01-11 is week 2 of 2021 per the ISO calendar.
Next
A week that is assigned to the next year/month. e.g. 2019-12-31 is week 1 of 2020 per the ISO calendar.
Trait Implementations§
source§impl Debug for RelativeUnit
impl Debug for RelativeUnit
source§impl PartialEq<RelativeUnit> for RelativeUnit
impl PartialEq<RelativeUnit> for RelativeUnit
source§fn eq(&self, other: &RelativeUnit) -> bool
fn eq(&self, other: &RelativeUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.