pub fn once_err<T, E>(value: E) -> OnceErr<T, E>
Expand description

Creates an iterator that fails with a predetermined error exactly once.