Trait icu_datetime::scaffold::GetField

source ·
pub trait GetField<T>: UnstableSealed {
    // Required method
    fn get_field(&self) -> T;
}
Expand description

A type that can return a certain field T.

This is used as a bound on various datetime functions.

Required Methods§

source

fn get_field(&self) -> T

Returns the value of this trait’s field T.

Implementations on Foreign Types§

source§

impl GetField<Option<UtcOffset>> for UtcOffset

source§

impl GetField<()> for UtcOffset

source§

impl GetField<()> for Time

source§

impl GetField<IsoHour> for Time

source§

fn get_field(&self) -> IsoHour

source§

impl GetField<IsoMinute> for Time

source§

fn get_field(&self) -> IsoMinute

source§

impl GetField<IsoSecond> for Time

source§

fn get_field(&self) -> IsoSecond

source§

impl GetField<NanoSecond> for Time

source§

fn get_field(&self) -> NanoSecond

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<()> for Date<A>

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<()> for DateTime<A>

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<DayOfMonth> for Date<A>

source§

fn get_field(&self) -> DayOfMonth

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<DayOfMonth> for DateTime<A>

source§

fn get_field(&self) -> DayOfMonth

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<DayOfYearInfo> for Date<A>

source§

fn get_field(&self) -> DayOfYearInfo

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<DayOfYearInfo> for DateTime<A>

source§

fn get_field(&self) -> DayOfYearInfo

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<IsoHour> for DateTime<A>

source§

fn get_field(&self) -> IsoHour

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<IsoMinute> for DateTime<A>

source§

fn get_field(&self) -> IsoMinute

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<IsoSecond> for DateTime<A>

source§

fn get_field(&self) -> IsoSecond

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<IsoWeekday> for Date<A>

source§

fn get_field(&self) -> IsoWeekday

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<IsoWeekday> for DateTime<A>

source§

fn get_field(&self) -> IsoWeekday

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<MonthInfo> for Date<A>

source§

fn get_field(&self) -> MonthInfo

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<MonthInfo> for DateTime<A>

source§

fn get_field(&self) -> MonthInfo

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<NanoSecond> for DateTime<A>

source§

fn get_field(&self) -> NanoSecond

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<YearInfo> for Date<A>

source§

fn get_field(&self) -> YearInfo

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>> GetField<YearInfo> for DateTime<A>

source§

fn get_field(&self) -> YearInfo

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>, Z> GetField<(Date<Iso>, Time)> for CustomZonedDateTime<A, Z>
where Z: GetField<(Date<Iso>, Time)>,

source§

fn get_field(&self) -> (Date<Iso>, Time)

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>, Z> GetField<ZoneVariant> for CustomZonedDateTime<A, Z>

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>, Z> GetField<Option<UtcOffset>> for CustomZonedDateTime<A, Z>

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>, Z> GetField<()> for CustomZonedDateTime<A, Z>

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>, Z> GetField<TimeZoneBcp47Id> for CustomZonedDateTime<A, Z>

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>, Z> GetField<DayOfMonth> for CustomZonedDateTime<A, Z>

source§

fn get_field(&self) -> DayOfMonth

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>, Z> GetField<DayOfYearInfo> for CustomZonedDateTime<A, Z>

source§

fn get_field(&self) -> DayOfYearInfo

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>, Z> GetField<IsoHour> for CustomZonedDateTime<A, Z>

source§

fn get_field(&self) -> IsoHour

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>, Z> GetField<IsoMinute> for CustomZonedDateTime<A, Z>

source§

fn get_field(&self) -> IsoMinute

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>, Z> GetField<IsoSecond> for CustomZonedDateTime<A, Z>

source§

fn get_field(&self) -> IsoSecond

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>, Z> GetField<IsoWeekday> for CustomZonedDateTime<A, Z>

source§

fn get_field(&self) -> IsoWeekday

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>, Z> GetField<MonthInfo> for CustomZonedDateTime<A, Z>

source§

fn get_field(&self) -> MonthInfo

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>, Z> GetField<NanoSecond> for CustomZonedDateTime<A, Z>

source§

fn get_field(&self) -> NanoSecond

source§

impl<C: Calendar, A: AsCalendar<Calendar = C>, Z> GetField<YearInfo> for CustomZonedDateTime<A, Z>

source§

fn get_field(&self) -> YearInfo

source§

impl<O> GetField<(Date<Iso>, Time)> for TimeZoneInfo<O>
where O: TimeZoneModel<LocalTime = (Date<Iso>, Time)>,

source§

fn get_field(&self) -> (Date<Iso>, Time)

source§

impl<O> GetField<ZoneVariant> for TimeZoneInfo<O>
where O: TimeZoneModel<ZoneVariant = ZoneVariant>,

source§

impl<O> GetField<Option<UtcOffset>> for TimeZoneInfo<O>
where O: TimeZoneModel,

source§

impl<O> GetField<TimeZoneBcp47Id> for TimeZoneInfo<O>
where O: TimeZoneModel,

source§

impl<O: TimeZoneModel> GetField<()> for TimeZoneInfo<O>

Implementors§

source§

impl GetField<CompositeFieldSet> for CalendarPeriodFieldSet

source§

impl GetField<CompositeFieldSet> for CompositeDateTimeFieldSet

source§

impl GetField<CompositeFieldSet> for DateAndTimeFieldSet

source§

impl GetField<CompositeFieldSet> for DateFieldSet

source§

impl GetField<CompositeFieldSet> for TimeFieldSet

source§

impl GetField<CompositeFieldSet> for ZoneFieldSet

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl GetField<CompositeFieldSet> for D

source§

impl GetField<CompositeFieldSet> for DE

source§

impl GetField<CompositeFieldSet> for DET

source§

impl GetField<CompositeFieldSet> for DT

source§

impl GetField<CompositeFieldSet> for E

source§

impl GetField<CompositeFieldSet> for ET

source§

impl GetField<CompositeFieldSet> for L

source§

impl GetField<CompositeFieldSet> for M

source§

impl GetField<CompositeFieldSet> for MD

source§

impl GetField<CompositeFieldSet> for MDE

source§

impl GetField<CompositeFieldSet> for MDET

source§

impl GetField<CompositeFieldSet> for MDT

source§

impl GetField<CompositeFieldSet> for O

source§

impl GetField<CompositeFieldSet> for Os

source§

impl GetField<CompositeFieldSet> for T

source§

impl GetField<CompositeFieldSet> for V

source§

impl GetField<CompositeFieldSet> for Vs

source§

impl GetField<CompositeFieldSet> for Y

source§

impl GetField<CompositeFieldSet> for YM

source§

impl GetField<CompositeFieldSet> for YMD

source§

impl GetField<CompositeFieldSet> for YMDE

source§

impl GetField<CompositeFieldSet> for YMDET

source§

impl GetField<CompositeFieldSet> for YMDT

source§

impl GetField<CompositeFieldSet> for Z

source§

impl GetField<CompositeFieldSet> for Zs

source§

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