Trait icu::datetime::scaffold::InSameCalendar

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

An input that may be associated with a specific runtime calendar.

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 InSameCalendar for Time

source§

impl InSameCalendar for UtcOffset

source§

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

source§

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

source§

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

source§

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