1use crate::scrape::{Error, Scraper}; 2 3/// An element that can scrape itself from the web. 4pub trait Scrape: Sized { 5 /// Scrapes an instance of the element from the scraper `s`. 6 fn scrape(s: Scraper) -> Result<Self, Error>; 7}