Trait icu::datetime::scaffold::IsAnyCalendarKind

source ·
pub trait IsAnyCalendarKind {
    // Required method
    fn check_any_calendar_kind(
        &self,
        any_calendar_kind: AnyCalendarKind,
    ) -> Result<(), MismatchedCalendarError>;
}
Expand description

A type that might be compatible with a specific calendar system.

All formattable types should implement this trait.

Required Methods§

source

fn check_any_calendar_kind( &self, any_calendar_kind: AnyCalendarKind, ) -> Result<(), MismatchedCalendarError>

Checks whether this type is compatible with the given calendar.

Types that are agnostic to calendar systems should return Ok(()).

Implementors§

source§

impl IsAnyCalendarKind for Time

source§

impl IsAnyCalendarKind for UtcOffset

source§

impl<C, A> IsAnyCalendarKind for Date<A>
where C: Calendar, A: AsCalendar<Calendar = C>,

source§

impl<C, A> IsAnyCalendarKind for DateTime<A>
where C: Calendar, A: AsCalendar<Calendar = C>,

source§

impl<C, A, Z> IsAnyCalendarKind for CustomZonedDateTime<A, Z>
where C: Calendar, A: AsCalendar<Calendar = C>,

source§

impl<O> IsAnyCalendarKind for TimeZoneInfo<O>
where O: TimeZoneModel,