Enum icu_datetime::fields::Weekday
source · [−]#[repr(u8)]
pub enum Weekday {
Format,
Local,
StandAlone,
}
Expand description
An enum for the possible symbols of a weekday field in a date pattern.
Variants
Format
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
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
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
sourceimpl AsULE for Weekday
impl AsULE for Weekday
type ULE = WeekdayULE
type ULE = WeekdayULE
The ULE type corresponding to Self
. Read more
sourcefn to_unaligned(self) -> Self::ULE
fn to_unaligned(self) -> Self::ULE
Converts from Self
to Self::ULE
. Read more
sourcefn from_unaligned(other: Self::ULE) -> Self
fn from_unaligned(other: Self::ULE) -> Self
Converts from Self::ULE
to Self
. Read more
sourceimpl Bake for Weekday
impl Bake for Weekday
sourcefn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
Returns a TokenStream
that would evalutate to self
. Read more
sourceimpl<'de> Deserialize<'de> for Weekday
impl<'de> Deserialize<'de> for Weekday
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<Weekday> for FieldSymbol
impl From<Weekday> for FieldSymbol
sourceimpl Ord for Weekday
impl Ord for Weekday
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Weekday> for Weekday
impl PartialOrd<Weekday> for Weekday
sourcefn partial_cmp(&self, other: &Weekday) -> Option<Ordering>
fn partial_cmp(&self, other: &Weekday) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<'a> Yokeable<'a> for Weekday
impl<'a> Yokeable<'a> for Weekday
sourcefn transform(&self) -> &Self::Output
fn transform(&self) -> &Self::Output
This method must cast self
between &'a Self<'static>
and &'a Self<'a>
. Read more
sourcefn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
This method must cast self
between Self<'static>
and Self<'a>
. Read more
sourceunsafe fn make(this: Self::Output) -> Self
unsafe fn make(this: Self::Output) -> Self
This method can be used to cast away Self<'a>
’s lifetime. Read more
sourcefn 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),
This method must cast self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read more
sourceimpl<'a> ZeroMapKV<'a> for Weekday
impl<'a> ZeroMapKV<'a> for Weekday
impl Copy for Weekday
impl Eq for Weekday
impl<'a> IsCovariant<'a> for Weekday
impl StructuralEq for Weekday
impl StructuralPartialEq for Weekday
Auto Trait Implementations
impl RefUnwindSafe for Weekday
impl Send for Weekday
impl Sync for Weekday
impl Unpin for Weekday
impl UnwindSafe for Weekday
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more