#[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<'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 PartialOrd for Weekday
impl PartialOrd for Weekday
source§impl Serialize for Weekday
impl Serialize for Weekday
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl<'a> Yokeable<'a> for Weekday
impl<'a> Yokeable<'a> for Weekday
source§impl<'a> ZeroMapKV<'a> for Weekday
impl<'a> ZeroMapKV<'a> for Weekday
impl Copy for Weekday
impl Eq for Weekday
impl StructuralPartialEq for Weekday
Auto Trait Implementations§
impl Freeze for Weekday
impl RefUnwindSafe for Weekday
impl Send for Weekday
impl Sync for Weekday
impl Unpin for Weekday
impl UnwindSafe for Weekday
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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