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§
sourcefn check_any_calendar_kind(
&self,
any_calendar_kind: AnyCalendarKind,
) -> Result<(), MismatchedCalendarError>
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(())
.