pub struct Document {
pub root: Node,
}
Fields
root: Node
Implementations
sourceimpl Document
impl Document
pub fn new(root: Node) -> Self
pub fn evaluate<S: Into<String>>(&self, search: S) -> Result<ProduceIter<'_>>
pub fn evaluate_from<'b, 'a: 'b, S: Into<String>>(
&'a self,
search: S,
node: &'a Node
) -> Result<ProduceIter<'b>>
pub fn evaluate_steps(&self, steps: Vec<ExprToken>) -> Result<ProduceIter<'_>>
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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