Enum icu_datetime::fieldset::dynamic::CompositeFieldSet

source ·
#[non_exhaustive]
pub enum CompositeFieldSet { Date(DateFieldSet), CalendarPeriod(CalendarPeriodFieldSet), Time(TimeFieldSet), Zone(ZoneFieldSet), DateTime(DateAndTimeFieldSet), DateZone(DateFieldSet, ZoneStyle), TimeZone(TimeFieldSet, ZoneStyle), DateTimeZone(DateAndTimeFieldSet, ZoneStyle), }
Expand description

An enum supporting all possible field sets and options.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Date(DateFieldSet)

Field set for a date.

§

CalendarPeriod(CalendarPeriodFieldSet)

Field set for a calendar period.

§

Time(TimeFieldSet)

Field set for a time.

§

Zone(ZoneFieldSet)

Field set for a time zone.

§

DateTime(DateAndTimeFieldSet)

Field set for a date and a time together.

§

DateZone(DateFieldSet, ZoneStyle)

Field set for a date and a time zone together.

§

TimeZone(TimeFieldSet, ZoneStyle)

Field set for a time and a time zone together.

§

DateTimeZone(DateAndTimeFieldSet, ZoneStyle)

Field set for a date, a time, and a time zone together.

Trait Implementations§

source§

impl Clone for CompositeFieldSet

source§

fn clone(&self) -> CompositeFieldSet

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl DateTimeMarkers for CompositeFieldSet

source§

type D = DateFieldSet

Associated types for date formatting. Read more
source§

type T = TimeFieldSet

Associated types for time formatting. Read more
source§

type Z = ZoneFieldSet

Associated types for time zone formatting. Read more
source§

type GluePatternV1Marker = GluePatternV1Marker

Marker for loading the date/time glue pattern.
source§

impl DateTimeNamesMarker for CompositeFieldSet

source§

impl Debug for CompositeFieldSet

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<CompositeFieldSet> for CompositeFieldSetSerde

source§

fn from(value: CompositeFieldSet) -> Self

Converts to this type from the input type.
source§

impl GetField<CompositeFieldSet> for CalendarPeriodFieldSet

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<D, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<D, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<D, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<D, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DE, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DE, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DE, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DE, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DET, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DET, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DET, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DET, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DT, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DT, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DT, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DT, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateAndTimeFieldSet, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateAndTimeFieldSet, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateAndTimeFieldSet, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateAndTimeFieldSet, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateFieldSet, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateFieldSet, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateFieldSet, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateFieldSet, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<E, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<E, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<E, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<E, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<ET, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<ET, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<ET, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<ET, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MD, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MD, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MD, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MD, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDE, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDE, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDE, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDE, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDET, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDET, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDET, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDET, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDT, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDT, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDT, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDT, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<T, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<T, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<T, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<T, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<TimeFieldSet, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<TimeFieldSet, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<TimeFieldSet, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<TimeFieldSet, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMD, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMD, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMD, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMD, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDE, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDE, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDE, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDE, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDET, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDET, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDET, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDET, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDT, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDT, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDT, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDT, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for CompositeDateTimeFieldSet

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for D

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for DE

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for DET

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for DT

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for DateAndTimeFieldSet

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for DateFieldSet

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for E

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for ET

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for L

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for M

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for MD

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for MDE

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for MDET

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for MDT

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for O

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for T

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for TimeFieldSet

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for V

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Y

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for YM

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for YMD

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for YMDE

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for YMDET

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for YMDT

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Z

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for ZoneFieldSet

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl PartialEq for CompositeFieldSet

source§

fn eq(&self, other: &CompositeFieldSet) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<CompositeFieldSetSerde> for CompositeFieldSet

source§

type Error = CompositeFieldSetSerdeError

The type returned in the event of a conversion error.
source§

fn try_from(value: CompositeFieldSetSerde) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for CompositeFieldSet

source§

impl Eq for CompositeFieldSet

source§

impl StructuralPartialEq for CompositeFieldSet

source§

impl UnstableSealed for CompositeFieldSet

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> GetField<T> for T
where T: Copy,

source§

fn get_field(&self) -> T

Returns the value of this trait’s field T.
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T
where T: Send + Sync,