#[repr(u8)]pub enum Hour {
    H11 = 0,
    H12 = 1,
    H23 = 2,
}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.
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Hour> for FieldSymbol
 
impl From<Hour> for FieldSymbol
Source§fn from(input: Hour) -> FieldSymbol
 
fn from(input: Hour) -> FieldSymbol
Converts to this type from the input type.
Source§impl Ord for Hour
 
impl Ord for Hour
Source§impl PartialOrd for Hour
 
impl PartialOrd for Hour
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
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>
Converts 
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>
Converts 
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