pub trait Scrape {
// Required method
fn elem(&self) -> ElementRef<'_>;
// Provided methods
fn find_first(&self, selector: &Selector) -> Option<ElementRef<'_>> { ... }
fn inner_text(&self) -> String { ... }
}Required Methods§
Sourcefn elem(&self) -> ElementRef<'_>
fn elem(&self) -> ElementRef<'_>
Gets the underlying element
Provided Methods§
Sourcefn find_first(&self, selector: &Selector) -> Option<ElementRef<'_>>
fn find_first(&self, selector: &Selector) -> Option<ElementRef<'_>>
Finds first element that matches selector.
Returns None if no matches are found.
Sourcefn inner_text(&self) -> String
fn inner_text(&self) -> String
Gets texts inside the underlying element as String.