Enum icu_datetime::fields::Weekday
source · #[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
source§type ULE = WeekdayULE
type ULE = WeekdayULE
Self
. Read moresource§fn to_unaligned(self) -> Self::ULE
fn to_unaligned(self) -> Self::ULE
source§fn from_unaligned(other: Self::ULE) -> Self
fn from_unaligned(other: Self::ULE) -> Self
source§impl<'de> Deserialize<'de> for Weekday
impl<'de> Deserialize<'de> for Weekday
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl From<Weekday> for FieldSymbol
impl From<Weekday> for FieldSymbol
source§impl Ord for Weekday
impl Ord for Weekday
source§impl PartialOrd for Weekday
impl PartialOrd for Weekday
source§impl<'a> Yokeable<'a> for Weekdaywhere
Self: Sized,
impl<'a> Yokeable<'a> for Weekdaywhere
Self: Sized,
source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
source§unsafe fn make(this: Self::Output) -> Self
unsafe fn make(this: Self::Output) -> Self
Self<'a>
’s lifetime. Read moresource§fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut Self::Output),
fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut Self::Output),
self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read moresource§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