pub struct WeekData {
    pub first_weekday: Weekday,
    pub weekend: WeekdaySet,
}Expand description
An ICU4X mapping to a subset of CLDR weekData. See CLDR-JSON’s weekData.json for more context.
🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Fields§
§first_weekday: WeekdayThe first day of a week.
weekend: WeekdaySetBitset representing weekdays that are part of the ‘weekend’, for calendar purposes. The number of days can be different between locales, and may not be contiguous.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WeekData
 
impl<'de> Deserialize<'de> for WeekData
Source§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<WeekData, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<WeekData, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MaybeAsVarULE for WeekData
 
impl MaybeAsVarULE for WeekData
Source§impl<'a> Yokeable<'a> for WeekData
 
impl<'a> Yokeable<'a> for WeekData
Source§type Output = WeekData
 
type Output = WeekData
This type MUST be 
Self with the 'static replaced with 'a, i.e. Self<'a>impl Copy for WeekData
impl StructuralPartialEq for WeekData
Auto Trait Implementations§
impl Freeze for WeekData
impl RefUnwindSafe for WeekData
impl Send for WeekData
impl Sync for WeekData
impl Unpin for WeekData
impl UnwindSafe for WeekData
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§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