#[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<Hour, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Hour, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl From<Hour> for FieldSymbol
impl From<Hour> for FieldSymbol
source§fn from(input: Hour) -> FieldSymbol
fn from(input: Hour) -> FieldSymbol
source§impl Ord for Hour
impl Ord for Hour
source§impl PartialOrd for Hour
impl PartialOrd for Hour
source§impl Serialize for Hour
impl Serialize for Hour
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl<'a> Yokeable<'a> for Hour
impl<'a> Yokeable<'a> for Hour
source§impl<'a> ZeroMapKV<'a> for Hour
impl<'a> ZeroMapKV<'a> for Hour
impl Copy for Hour
impl Eq for Hour
impl StructuralPartialEq for Hour
Auto Trait Implementations§
impl Freeze for Hour
impl RefUnwindSafe for Hour
impl Send for Hour
impl Sync for Hour
impl Unpin for Hour
impl UnwindSafe for Hour
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