Trait Scrape

Source
pub trait Scrape: Sized {
    // Required method
    fn scrape(s: Scraper<'_>) -> Result<Self, Error>;
}
Expand description

An element that can scrape itself from the web.

Required Methods§

Source

fn scrape(s: Scraper<'_>) -> Result<Self, Error>

Scrapes an instance of the element from the scraper s.

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§