pub struct XPath {
pub steps: Vec<XPathStep>,
}Fields§
§steps: Vec<XPathStep>Implementations§
Source§impl XPath
impl XPath
pub fn parse(path: &str) -> Result<Self, String>
pub fn evaluate_single<'a, 'input>( &self, node: Node<'a, 'input>, ) -> Option<XPathResult<'a, 'input>>
pub fn evaluate_all<'a, 'input>( &self, node: Node<'a, 'input>, ) -> Vec<XPathResult<'a, 'input>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XPath
impl RefUnwindSafe for XPath
impl Send for XPath
impl Sync for XPath
impl Unpin for XPath
impl UnsafeUnpin for XPath
impl UnwindSafe for XPath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more