Trait rsonpath::FallibleIterator
source · pub trait FallibleIterator {
type Item;
type Error: Error;
// Required method
fn next(&mut self) -> Result<Option<Self::Item>, Self::Error>;
// Provided method
fn collect<B>(self) -> Result<B, Self::Error>
where B: FromIterator<Self::Item>,
Self: Sized { ... }
}
Expand description
Variation of the Iterator
trait where each read can fail.