Trait icu::datetime::scaffold::ConvertCalendar

source ·
pub trait ConvertCalendar {
    type Converted<'a>;

    // 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§

source

type Converted<'a>

The converted type. This can be the same as the receiver type.

Required Methods§

source

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.

Implementors§