[][src]Trait aerosol::ProvideWith

pub trait ProvideWith<T>: Provide<T> + Sized {
    fn provide_with<E, F: FnOnce(T) -> Result<T, E>>(
        &self,
        f: F
    ) -> Result<Self, E>; }

Allows cloning a context whilst replacing one dependency with a different implementation. Must be explicitly listed as a super-trait of an interface to use.

Required methods

fn provide_with<E, F: FnOnce(T) -> Result<T, E>>(&self, f: F) -> Result<Self, E>

Loading content...

Implementors

Loading content...