Enum icu_datetime::options::preferences::HourCycle[][src]

pub enum HourCycle {
    H24,
    H23,
    H12,
    H11,
}

A user preference for adjusting how the hour component is displayed.

Variants

H24

Hour is formatted to be in range 1-24

Examples

"24:12";
"8:23";
"19:00";
"23:21";
H23

Hour is formatted to be in range 0-23

Examples

"0:12";
"8:23";
"19:00";
"23:21";
H12

Hour is formatted to be in range 1-12

Examples

"1:12";
"8:23";
"7:00";
"11:21";
H11

Hour is formatted to be in range 0-11

Examples

"0:12";
"8:23";
"7:00";
"11:21";

Implementations

impl HourCycle[src]

pub fn field(self) -> Hour[src]

Trait Implementations

impl Clone for HourCycle[src]

impl Copy for HourCycle[src]

impl Debug for HourCycle[src]

impl<'de> Deserialize<'de> for HourCycle[src]

impl PartialEq<HourCycle> for HourCycle[src]

impl Serialize for HourCycle[src]

impl StructuralPartialEq for HourCycle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> ErasedDataStruct for T where
    T: Clone + Debug + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.