pub trait MaybeMap<Base, Out>: Sized {
    // Required method
    fn maybe_map<R: FnOnce(Base) -> Option<Out>>(self, map: R) -> Option<Out>;
}

Required Methods§

source

fn maybe_map<R: FnOnce(Base) -> Option<Out>>(self, map: R) -> Option<Out>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<Base, Out> MaybeMap<Base, Out> for Option<Base>

source§

fn maybe_map<R: FnOnce(Base) -> Option<Out>>(self, map: R) -> Option<Out>

Implementors§