Trait icu_datetime::neo_marker::ConvertCalendar
source · pub trait ConvertCalendar {
type Converted<'a>: Sized;
// Required method
fn to_calendar<'a>(&self, calendar: &'a AnyCalendar) -> Self::Converted<'a>;
}
Expand description
A type that can be converted into a specific calendar system.
Required Associated Types§
Required Methods§
sourcefn to_calendar<'a>(&self, calendar: &'a AnyCalendar) -> Self::Converted<'a>
fn to_calendar<'a>(&self, calendar: &'a AnyCalendar) -> Self::Converted<'a>
Converts self
to the specified [AnyCalendar
].
Object Safety§
This trait is not object safe.