macro_rules! const_for {
(($i:ident in $start:tt.. $end:tt) $code:expr) => { ... };
}Expand description
Allows for loops in constant context.
ⓘ
// This loop runs from 0 to 10 (not including 10).
const_for!((i in 0..10) {
// loop body here
});