Trait icu_datetime::neo_marker::IsAnyCalendarKind

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

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

All formattable types should implement this trait.

Required Methods§

source

fn is_any_calendar_kind(&self, any_calendar_kind: AnyCalendarKind) -> bool

Whether this type is compatible with the given calendar.

Types that are agnostic to calendar systems should return true.

Implementations on Foreign Types§

source§

impl IsAnyCalendarKind for Time

source§

fn is_any_calendar_kind(&self, _: AnyCalendarKind) -> bool

source§

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

source§

fn is_any_calendar_kind(&self, _: AnyCalendarKind) -> bool

source§

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

source§

fn is_any_calendar_kind(&self, any_calendar_kind: AnyCalendarKind) -> bool

source§

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

source§

fn is_any_calendar_kind(&self, any_calendar_kind: AnyCalendarKind) -> bool

Implementors§