[−][src]Macro postfix_macros::then_else
else
clauses for the then!
macro
Meant to be used in a postfix context.
The then!
macro would serve as
the postfix analog of if
, while
this macro would be the postfix analog
of else
.
let mut w = 0; for i in 1..10 { w += i; (w % i == 0) .then!{ w += i * i } .then_else!{ w += 1 }; } assert_eq!(w, 181);