pub trait AsCalendar {
type Calendar: Calendar;
// Required method
fn as_calendar(&self) -> &Self::Calendar;
}Expand description
Types that contain a calendar
This allows one to use Date with wrappers around calendars,
e.g. reference counted calendars.
Required Associated Types§
Required Methods§
Sourcefn as_calendar(&self) -> &Self::Calendar
fn as_calendar(&self) -> &Self::Calendar
Obtain the inner calendar
Implementations on Foreign Types§
Source§impl<C> AsCalendar for Rc<C>where
C: AsCalendar,
✨ Enabled with the alloc Cargo feature.
impl<C> AsCalendar for Rc<C>where
C: AsCalendar,
✨ Enabled with the alloc Cargo feature.
type Calendar = <C as AsCalendar>::Calendar
fn as_calendar(&self) -> &<Rc<C> as AsCalendar>::Calendar
Source§impl<C> AsCalendar for Arc<C>where
C: AsCalendar,
✨ Enabled with the alloc Cargo feature.
impl<C> AsCalendar for Arc<C>where
C: AsCalendar,
✨ Enabled with the alloc Cargo feature.