Macro rat_widget::event::flow
source ยท macro_rules! flow { (log $n:ident: $x:expr) => { ... }; ($x:expr) => { ... }; }
Expand description
Breaks the control-flow if the block returns a value for with ConsumedEvent::is_consumed is true.
It then does the classic into()-conversion and returns.
Special widget result-types are encourage to map down to Outcome as a baseline.
The difference to flow is that this one Ok-wraps the result.
Extras: If you add a marker as in flow_ok!(log ident: {...});
the result of the operation is written to the log.