fn flatten(f: &ExprForLoop) -> Option<ExprForLoop>Expand description
for a in xs { for b in f(a) { body } } as for (a, b) in <pairs> { body }, when that is the
same loop: the outer body is only the inner loop, neither loop is labeled, body has no
break (which would end only the inner loop), and the outer item is a plain binding (it is
paired with every inner item, so it must be Copy, such as a reference; otherwise the
generated code does not compile rather than changing meaning).