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 for RelativeUnit
impl PartialEq 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 ==
.impl StructuralPartialEq for RelativeUnit
Auto Trait Implementations§
impl RefUnwindSafe for RelativeUnit
impl Send for RelativeUnit
impl Sync for RelativeUnit
impl Unpin for RelativeUnit
impl UnwindSafe for RelativeUnit
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