pub fn from_fallible_iter<I: FallibleIterator>(iter: I) -> FromIter<I>Expand description
Creates a lender from a fallible iterator.
This function can be conveniently accessed using the
into_fallible_lender method added to
FallibleIterator by this crate.
Does not change the behavior of the iterator: the resulting lender will yield the same items and can be adapted back into an iterator.
ยงExamples
let mut lender = data.iter().into_lender().into_fallible();
assert_eq!(lender.next().unwrap(), Some(&1));