Trait WithInner

Source
pub trait WithInner<O> {
    // Required methods
    fn with_inner<F, R>(&'static self, f: F) -> Option<R>
       where F: FnOnce(&O) -> R;
    fn with_inner_mut<F, R>(&'static self, f: F) -> Option<R>
       where F: FnOnce(&mut O) -> R;
}

Required Methods§

Source

fn with_inner<F, R>(&'static self, f: F) -> Option<R>
where F: FnOnce(&O) -> R,

Source

fn with_inner_mut<F, R>(&'static self, f: F) -> Option<R>
where F: FnOnce(&mut O) -> R,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, S, O> WithInner<O> for S
where S: WithBorrow<'a, Option<O>>,