[][src]Trait illicit::AsContext

pub trait AsContext {
    fn offer<R>(self, op: impl FnOnce() -> R) -> R;
}

Implemented by types that can offer themselves as context to a child call.

Required methods

fn offer<R>(self, op: impl FnOnce() -> R) -> R

Call op within the context of a Layer containing self.

Loading content...

Implementors

impl<T> AsContext for T where
    T: Debug + Sized + 'static, 
[src]

Loading content...