pub trait JsonCrawlerIterator: Iteratorwhere
Self::Item: JsonCrawler,{
// Required methods
fn find_path(self, path: impl AsRef<str>) -> CrawlerResult<Self::Item>;
fn try_last(self) -> CrawlerResult<Self::Item>;
}
Expand description
Iterator extension trait containing special methods for Json Crawler iterators to help with error handling.
Required Methods§
Sourcefn find_path(self, path: impl AsRef<str>) -> CrawlerResult<Self::Item>
fn find_path(self, path: impl AsRef<str>) -> CrawlerResult<Self::Item>
Return the first crawler found at path
, or error.
Sourcefn try_last(self) -> CrawlerResult<Self::Item>
fn try_last(self) -> CrawlerResult<Self::Item>
Return the last item of the array, or return an error with context.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.