Struct icu_calendar::week::WeekOf
source · pub struct WeekOf {
pub week: u8,
pub unit: RelativeUnit,
}
Expand description
The week number assigned to a given week according to a calendar.
Fields§
§week: u8
Week of month/year. 1 based.
unit: RelativeUnit
The month/year that this week is in, relative to the month/year of the input date.
Trait Implementations§
impl StructuralPartialEq for WeekOf
Auto Trait Implementations§
impl Freeze for WeekOf
impl RefUnwindSafe for WeekOf
impl Send for WeekOf
impl Sync for WeekOf
impl Unpin for WeekOf
impl UnwindSafe for WeekOf
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more