Trait dyn_context::ContextRef [−][src]
Provides method allowing combine two read-only Context
s into one.
Required methods
fn merge_and_then<T>(
self,
f: impl FnOnce(&dyn Context) -> T,
other: &dyn Context
) -> T
[src]
self,
f: impl FnOnce(&dyn Context) -> T,
other: &dyn Context
) -> T
Merges two contexts into one and calls provided function with the combined context.
Implementors
impl ContextRef for &dyn Context
[src]
fn merge_and_then<T>(
self,
f: impl FnOnce(&dyn Context) -> T,
other: &dyn Context
) -> T
[src]
self,
f: impl FnOnce(&dyn Context) -> T,
other: &dyn Context
) -> T
impl<C: Context> ContextRef for &C
[src]
fn merge_and_then<T>(
self,
f: impl FnOnce(&dyn Context) -> T,
other: &dyn Context
) -> T
[src]
self,
f: impl FnOnce(&dyn Context) -> T,
other: &dyn Context
) -> T