pub macro iter($($t:tt)*) {
...
}
🔬This is a nightly-only experimental API. (
iter_macro
)Expand description
Creates a new closure that returns an iterator where each iteration steps the given
generator to the next yield
statement.
Similar to iter::from_fn
, but allows arbitrary control flow.