rustc_trait_selection::traits::vtable

Function maybe_iter

source
fn maybe_iter<I: Iterator>(i: Option<I>) -> impl Iterator<Item = I::Item>
Expand description

Turns option of iterator into an iterator (this is just flatten)