Enum icu_datetime::options::preferences::HourCycle
source · [−]pub enum HourCycle {
H24,
H23,
H12,
H11,
}
Expand description
A user preference for adjusting how the hour component is displayed.
Variants
H24
Hour is formatted to be in range 1-24 where midnight is 24:00.
Examples
"24:12";
"8:23";
"19:00";
"23:21";
H23
Hour is formatted to be in range 0-23 where midnight is 00:00.
Examples
"0:12";
"8:23";
"19:00";
"23:21";
H12
Hour is formatted to be in range 1-12 where midnight is 12:00.
Examples
"1:12";
"8:23";
"7:00";
"11:21";
H11
Hour is formatted to be in range 0-11 where midnight is 00:00.
Examples
"0:12";
"8:23";
"7:00";
"11:21";
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for HourCycle
impl<'de> Deserialize<'de> for HourCycle
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for HourCycle
impl StructuralPartialEq for HourCycle
Auto Trait Implementations
impl RefUnwindSafe for HourCycle
impl Send for HourCycle
impl Sync for HourCycle
impl Unpin for HourCycle
impl UnwindSafe for HourCycle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more