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(()).

Implementations on Foreign Types§

source§

impl InSameCalendar for UtcOffset

source§

impl InSameCalendar for Time

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§