flow

Macro flow 

Source
macro_rules! flow {
    (log $n:ident: $x:expr) => { ... };
    ($x:expr) => { ... };
}
Expand description

Use event_flow! instead.

Returns from the current function if the block returns a value for which [ConsumedEvent::is_consumed] == true.

This breaks the control-flow of the current function effectively.

As the return type of the current function can differ from whatever function has been called, an ìnto() conversion is thrown in too.

The difference to try_flow is that this on doesn’t Ok-wrap the result.

Extras: If you add a marker as in flow!(log ident: {...}); the result of the operation is written to the log.