[][src]Trait aspect::OnResultMut

pub trait OnResultMut<R>: Enter {
    fn on_result(&self, _enter: Self::E, _result: &mut R) -> Advice { ... }
}

The OnResult trait is implemented on Aspects to get notified when an expression has returned, and provide the possibility to alter the result.

Provided methods

fn on_result(&self, _enter: Self::E, _result: &mut R) -> Advice

Called when an expression has returned.

This function is passed both the enter return value, and the expression return value.

Loading content...

Implementors

Loading content...