Trait icu_calendar::date::AsCalendar

source ·
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§

source

type Calendar: Calendar

The calendar being wrapped

Required Methods§

source

fn as_calendar(&self) -> &Self::Calendar

Obtain the inner calendar

Implementations on Foreign Types§

source§

impl<C: Calendar> AsCalendar for Rc<C>

§

type Calendar = C

source§

fn as_calendar(&self) -> &C

source§

impl<C: Calendar> AsCalendar for Arc<C>

§

type Calendar = C

source§

fn as_calendar(&self) -> &C

Implementors§

source§

impl<C: Calendar> AsCalendar for Ref<'_, C>

§

type Calendar = C

source§

impl<C: Calendar> AsCalendar for C

§

type Calendar = C