icu_time::scaffold

Trait IntoOption

Source
pub trait IntoOption<T> {
    // Required method
    fn into_option(self) -> Option<T>;
}
Expand description

Converts Self to an Option<T>, either Some(T) if able or None

Required Methods§

Source

fn into_option(self) -> Option<T>

Return self as an Option<T>

Implementations on Foreign Types§

Source§

impl IntoOption<(Date<Iso>, Time)> for (Date<Iso>, Time)

Source§

fn into_option(self) -> Option<Self>

Source§

impl IntoOption<AnyCalendarKind> for AnyCalendarKind

Source§

fn into_option(self) -> Option<Self>

Source§

impl IntoOption<DayOfMonth> for DayOfMonth

Source§

fn into_option(self) -> Option<Self>

Source§

impl IntoOption<DayOfYearInfo> for DayOfYearInfo

Source§

fn into_option(self) -> Option<Self>

Source§

impl IntoOption<MonthInfo> for MonthInfo

Source§

fn into_option(self) -> Option<Self>

Source§

impl IntoOption<Weekday> for Weekday

Source§

fn into_option(self) -> Option<Self>

Source§

impl IntoOption<YearInfo> for YearInfo

Source§

fn into_option(self) -> Option<Self>

Source§

impl<T> IntoOption<T> for Option<T>

Source§

impl<T> IntoOption<T> for ()

Implementors§