Enum icu::datetime::fields::FieldSymbol
source · pub enum FieldSymbol {
Era,
Year(Year),
Month(Month),
Week(Week),
Day(Day),
Weekday(Weekday),
DayPeriod(DayPeriod),
Hour(Hour),
Minute,
Second(Second),
TimeZone(TimeZone),
}
Expand description
A field symbol for a date formatting pattern. Field symbols are a more granular distinction
for a pattern field within the category of a field type. Examples of field types are:
Year
, Month
, Hour
. Within the Hour
field type, examples of field symbols are: Hour::H12
,
Hour::H24
. Each field symbol is represented within the date formatting pattern string
by a distinct character from the set of A..Z
and a..z
.
Variants§
Era
Era name.
Year(Year)
Year number or year name.
Month(Month)
Month number or month name.
Week(Week)
Week number or week name.
Day(Day)
Day number relative to a time period longer than a week (ex: month, year).
Weekday(Weekday)
Day number or day name relative to a week.
DayPeriod(DayPeriod)
Name of a period within a day.
Hour(Hour)
Hour number within a day, possibly with day period.
Minute
Minute number within an hour.
Second(Second)
Seconds number within a minute, including fractional seconds, or milliseconds within a day.
TimeZone(TimeZone)
Time zone as a name, a zone ID, or a ISO 8601 numerical offset.
Trait Implementations§
source§impl AsULE for FieldSymbol
impl AsULE for FieldSymbol
§type ULE = FieldSymbolULE
type ULE = FieldSymbolULE
Self
. Read moresource§fn to_unaligned(self) -> <FieldSymbol as AsULE>::ULE
fn to_unaligned(self) -> <FieldSymbol as AsULE>::ULE
source§fn from_unaligned(unaligned: <FieldSymbol as AsULE>::ULE) -> FieldSymbol
fn from_unaligned(unaligned: <FieldSymbol as AsULE>::ULE) -> FieldSymbol
source§impl Clone for FieldSymbol
impl Clone for FieldSymbol
source§fn clone(&self) -> FieldSymbol
fn clone(&self) -> FieldSymbol
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FieldSymbol
impl Debug for FieldSymbol
source§impl<'de> Deserialize<'de> for FieldSymbol
impl<'de> Deserialize<'de> for FieldSymbol
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<FieldSymbol, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<FieldSymbol, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
source§impl From<Day> for FieldSymbol
impl From<Day> for FieldSymbol
source§fn from(input: Day) -> FieldSymbol
fn from(input: Day) -> FieldSymbol
source§impl From<DayPeriod> for FieldSymbol
impl From<DayPeriod> for FieldSymbol
source§fn from(input: DayPeriod) -> FieldSymbol
fn from(input: DayPeriod) -> FieldSymbol
source§impl From<Hour> for FieldSymbol
impl From<Hour> for FieldSymbol
source§fn from(input: Hour) -> FieldSymbol
fn from(input: Hour) -> FieldSymbol
source§impl From<Month> for FieldSymbol
impl From<Month> for FieldSymbol
source§fn from(input: Month) -> FieldSymbol
fn from(input: Month) -> FieldSymbol
source§impl From<Second> for FieldSymbol
impl From<Second> for FieldSymbol
source§fn from(input: Second) -> FieldSymbol
fn from(input: Second) -> FieldSymbol
source§impl From<TimeZone> for FieldSymbol
impl From<TimeZone> for FieldSymbol
source§fn from(input: TimeZone) -> FieldSymbol
fn from(input: TimeZone) -> FieldSymbol
source§impl From<Week> for FieldSymbol
impl From<Week> for FieldSymbol
source§fn from(input: Week) -> FieldSymbol
fn from(input: Week) -> FieldSymbol
source§impl From<Weekday> for FieldSymbol
impl From<Weekday> for FieldSymbol
source§fn from(input: Weekday) -> FieldSymbol
fn from(input: Weekday) -> FieldSymbol
source§impl From<Year> for FieldSymbol
impl From<Year> for FieldSymbol
source§fn from(input: Year) -> FieldSymbol
fn from(input: Year) -> FieldSymbol
source§impl Ord for FieldSymbol
impl Ord for FieldSymbol
source§fn cmp(&self, other: &FieldSymbol) -> Ordering
fn cmp(&self, other: &FieldSymbol) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq for FieldSymbol
impl PartialEq for FieldSymbol
source§fn eq(&self, other: &FieldSymbol) -> bool
fn eq(&self, other: &FieldSymbol) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FieldSymbol
impl PartialOrd for FieldSymbol
source§fn partial_cmp(&self, other: &FieldSymbol) -> Option<Ordering>
fn partial_cmp(&self, other: &FieldSymbol) -> Option<Ordering>
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