macro_rules! if_chain {
(| $cond:expr => $branch:expr
$(, | $cond_alt:expr => $branch_alt:expr )*
$(, | _ => $fallback:expr)? $(,)? ) => { ... };
}Expand description
A macro for writing if chains
macro_rules! if_chain {
(| $cond:expr => $branch:expr
$(, | $cond_alt:expr => $branch_alt:expr )*
$(, | _ => $fallback:expr)? $(,)? ) => { ... };
}A macro for writing if chains