Trait dyn_context::ContextRef[][src]

pub trait ContextRef {
    fn merge_and_then<T>(
        self,
        f: impl FnOnce(&dyn Context) -> T,
        other: &dyn Context
    ) -> T; }

Provides method allowing combine two read-only Contexts into one.

Required methods

fn merge_and_then<T>(
    self,
    f: impl FnOnce(&dyn Context) -> T,
    other: &dyn Context
) -> T
[src]

Merges two contexts into one and calls provided function with the combined context.

Loading content...

Implementors

impl ContextRef for &dyn Context[src]

impl<C: Context> ContextRef for &C[src]

Loading content...