Enum icu_datetime::fields::Second
source · #[repr(u8)]
pub enum Second {
Second,
FractionalSecond,
Millisecond,
}
Expand description
An enum for the possible symbols of a second field in a date pattern.
Variants§
Second
Field symbol for second (numeric).
This field symbol is represented by the character s
in a date formatting pattern string.
For more details, see documentation on date field symbols.
FractionalSecond
Field symbol for fractional second (numeric).
Produces the number of digits specified by the field length.
This field symbol is represented by the character S
in a date formatting pattern string.
For more details, see documentation on date field symbols.
Millisecond
Field symbol for milliseconds in day (numeric).
This field behaves exactly like a composite of all time-related fields, not including the zone fields.
This field symbol is represented by the character A
in a date formatting pattern string.
For more details, see documentation on date field symbols.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Second
impl<'de> Deserialize<'de> for Second
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<Second> for FieldSymbol
impl From<Second> for FieldSymbol
source§impl Ord for Second
impl Ord for Second
source§impl PartialEq<Second> for Second
impl PartialEq<Second> for Second
source§impl PartialOrd<Second> for Second
impl PartialOrd<Second> for Second
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 moresource§impl<'a> Yokeable<'a> for Second
impl<'a> Yokeable<'a> for Second
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 more