[][src]Trait aspect::OnResult

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

The OnResult trait is implemented on Aspects to get notified when an expression has returned.

Provided methods

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

Called when an expression has returned.

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

on_result does not get a chance to alter the returned result. Use OnResultMut for that purpose.

Loading content...

Implementors

Loading content...