Function fallible_iterator::once_err
source · pub fn once_err<T, E>(value: E) -> OnceErr<T, E>
Expand description
Creates an iterator that fails with a predetermined error exactly once.
pub fn once_err<T, E>(value: E) -> OnceErr<T, E>
Creates an iterator that fails with a predetermined error exactly once.