Struct icu_datetime::options::preferences::Bag[][src]

pub struct Bag {
    pub hour_cycle: Option<HourCycle>,
}

Stores user preferences which may affect the result of date and time formatting.

Examples

use icu::datetime::options::preferences;

let prefs = preferences::Bag {
    hour_cycle: Some(preferences::HourCycle::H23)
};

Fields

hour_cycle: Option<HourCycle>

Trait Implementations

impl Clone for Bag[src]

impl Debug for Bag[src]

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

impl PartialEq<Bag> for Bag[src]

impl Serialize for Bag[src]

impl StructuralPartialEq for Bag[src]

Auto Trait Implementations

impl RefUnwindSafe for Bag

impl Send for Bag

impl Sync for Bag

impl Unpin for Bag

impl UnwindSafe for Bag

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.