macro_rules! break_flow {
(log $l:lifetime: $n:ident: $($x:tt)*) => { ... };
($l:lifetime: $($x:tt)*) => { ... };
}Expand description
Breaks the control-flow if the block returns a value for which ConsumedEvent::is_consumed is true.
It does the classic into()-conversion and breaks with the result
to the enclosing block given as a 'l:{} labeled block.
- The difference to try_flow is that this on doesn’t Ok-wrap the result.*
- The difference to flow is that this breaks instead of return_ing.
Extras: If you add a marker as in break_flow!(log 'f: ident: {...});
the result of the operation is written to the log.
Note: