Trait JsonCrawlerIterator

Source
pub trait JsonCrawlerIterator: Iterator
where 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§

Source

fn find_path(self, path: impl AsRef<str>) -> CrawlerResult<Self::Item>

Return the first crawler found at path, or error.

Source

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.

Implementors§