Trait illicit::AsContext[][src]

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

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

Required methods

Call op within the context of a Layer containing self.

Implementors