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