#[repr(u8)]pub enum Weekday {
Format = 0,
Local = 1,
StandAlone = 2,
}
Expand description
An enum for the possible symbols of a weekday field in a date pattern.
Variants§
Format = 0
Field symbol for day of week (text format only).
This field symbol is represented by the character E
in a date formatting pattern string.
For more details, see documentation on date field symbols.
Local = 1
Field symbol for day of week; numeric formats produce a locale-dependent ordinal weekday number.
For example, in de-DE, Monday is the 1st day of the week.
This field symbol is represented by the character e
in a date formatting pattern string.
For more details, see documentation on date field symbols.
StandAlone = 2
Field symbol for stand-alone local day of week number/name.
The stand-alone weekday name is used when the weekday is displayed by itself. This may differ from the standard form based on the language and context.
This field symbol is represented by the character c
in a date formatting pattern string.
For more details, see documentation on date field symbols.
Trait Implementations§
source§impl AsULE for Weekday
impl AsULE for Weekday
§type ULE = WeekdayULE
type ULE = WeekdayULE
Self
. Read moresource§fn to_unaligned(self) -> <Weekday as AsULE>::ULE
fn to_unaligned(self) -> <Weekday as AsULE>::ULE
source§impl<'de> Deserialize<'de> for Weekday
impl<'de> Deserialize<'de> for Weekday
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Weekday, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Weekday, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
source§impl From<Weekday> for FieldSymbol
impl From<Weekday> for FieldSymbol
source§fn from(input: Weekday) -> FieldSymbol
fn from(input: Weekday) -> FieldSymbol
source§impl Ord for Weekday
impl Ord for Weekday
source§impl PartialEq for Weekday
impl PartialEq for Weekday
source§impl PartialOrd for Weekday
impl PartialOrd for Weekday
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more