Trait dyn_context::ContextRefMut[][src]

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

Provides method allowing combine two Contexts into one.

Required methods

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

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

Loading content...

Implementors

impl ContextRefMut for &mut dyn Context[src]

impl<C: Context> ContextRefMut for &mut C[src]

Loading content...