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.
Implementations§
source§impl Weekday
impl Weekday
sourcepub(crate) fn new_from_u8(value: u8) -> Option<Self>
pub(crate) fn new_from_u8(value: u8) -> Option<Self>
Attempt to construct the value from its corresponding integer,
returning None
if not possible
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 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§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