Struct scraper_main::Document
source · pub struct Document {
pub root: Node,
}Fields
root: NodeImplementations
sourceimpl Document
impl Document
pub fn new(root: Node) -> Document
pub fn evaluate<S>(&self, search: S) -> Result<ProduceIter<'_>, Error>where
S: Into<String>,
pub fn evaluate_from<'b, 'a, S>(
&'a self,
search: S,
node: &'a Node
) -> Result<ProduceIter<'b>, Error>where
'a: 'b,
S: Into<String>,
pub fn evaluate_steps(
&self,
steps: Vec<ExprToken, Global>
) -> Result<ProduceIter<'_>, Error>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Document
impl !Send for Document
impl !Sync for Document
impl Unpin for Document
impl !UnwindSafe for Document
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more