pub trait OptionExt<V> {
    // Required methods
    fn update_with<S, F, R>(&mut self, f: F) -> R
       where F: FnOnce(&mut Option<S>) -> R,
             V: TryInto<S>,
             S: TryInto<V>;
    fn initialized(&mut self) -> &mut Self
       where V: Default;
}

Required Methods§

source

fn update_with<S, F, R>(&mut self, f: F) -> Rwhere F: FnOnce(&mut Option<S>) -> R, V: TryInto<S>, S: TryInto<V>,

source

fn initialized(&mut self) -> &mut Selfwhere V: Default,

Implementations on Foreign Types§

source§

impl<V> OptionExt<V> for Option<V>

source§

fn update_with<S, F, R>(&mut self, f: F) -> Rwhere F: FnOnce(&mut Option<S>) -> R, V: TryInto<S>, S: TryInto<V>,

source§

fn initialized(&mut self) -> &mut Selfwhere V: Default,

Implementors§