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)