Function wrap_ok

Source
pub fn wrap_ok<T, I: Iterator<Item = T> + Sized>(
    iter: I,
) -> impl Iterator<Item = Result<T, ()>>
Expand description

Wraps each item T into Result<T, ()>

Useful because all built in functions use Result as the item type for error handling