pub trait IntoAnyCalendar: Calendar + Sized {
// Required methods
fn to_any(self) -> AnyCalendar;
fn to_any_cloned(&self) -> AnyCalendar;
fn date_to_any(&self, d: &Self::DateInner) -> AnyDateInner;
}
Expand description
Trait for calendars that may be converted to AnyCalendar
Required Methods§
Sourcefn to_any(self) -> AnyCalendar
fn to_any(self) -> AnyCalendar
Convert this calendar into an AnyCalendar
, moving it
You should not need to call this method directly
Sourcefn to_any_cloned(&self) -> AnyCalendar
fn to_any_cloned(&self) -> AnyCalendar
Convert this calendar into an AnyCalendar
, cloning it
You should not need to call this method directly
Sourcefn date_to_any(&self, d: &Self::DateInner) -> AnyDateInner
fn date_to_any(&self, d: &Self::DateInner) -> AnyDateInner
Convert a date for this calendar into an AnyDateInner
You should not need to call this method directly
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.