Enum icu_datetime::fields::Hour
source · #[repr(u8)]pub enum Hour {
H11 = 0,
H12 = 1,
H23 = 2,
H24 = 3,
}
Expand description
An enum for the possible symbols of an hour field in a date pattern.
Variants§
H11 = 0
Field symbol for numeric hour [0-11].
This field symbol is represented by the character K
in a date formatting pattern string.
For more details, see documentation on date field symbols.
H12 = 1
Field symbol for numeric hour [1-12].
This field symbol is represented by the character h
in a date formatting pattern string.
For more details, see documentation on date field symbols.
H23 = 2
Field symbol for numeric hour [0-23].
This field symbol is represented by the character H
in a date formatting pattern string.
For more details, see documentation on date field symbols.
H24 = 3
Field symbol for numeric hour [1-24].
This field symbol is represented by the character k
in a date formatting pattern string.
For more details, see documentation on date field symbols.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hour
impl<'de> Deserialize<'de> for Hour
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<Hour> for FieldSymbol
impl From<Hour> for FieldSymbol
source§impl Ord for Hour
impl Ord for Hour
source§impl PartialEq for Hour
impl PartialEq for Hour
source§impl PartialOrd for Hour
impl PartialOrd for Hour
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 Hour
impl<'a> Yokeable<'a> for Hour
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