pub trait XPathEvaluatorMethods<D: DomTypes> {
    // Required methods
    fn CreateExpression(
        &self,
        expression: DOMString,
        resolver: Option<Rc<XPathNSResolver>>,
        _can_gc: CanGc,
    ) -> Result<Root<Dom<XPathExpression>>, Error>;
    fn CreateNSResolver(&self, nodeResolver: &Node) -> Root<Dom<Node>>;
    fn Evaluate(
        &self,
        expression: DOMString,
        contextNode: &Node,
        resolver: Option<Rc<XPathNSResolver>>,
        type_: u16,
        result: Option<&XPathResult>,
        _can_gc: CanGc,
    ) -> Result<Root<Dom<XPathResult>>, Error>;
    fn Constructor(
        global: &Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
    ) -> Root<Dom<XPathEvaluator>>;
}

Required Methods§

source

fn CreateExpression( &self, expression: DOMString, resolver: Option<Rc<XPathNSResolver>>, _can_gc: CanGc, ) -> Result<Root<Dom<XPathExpression>>, Error>

source

fn CreateNSResolver(&self, nodeResolver: &Node) -> Root<Dom<Node>>

source

fn Evaluate( &self, expression: DOMString, contextNode: &Node, resolver: Option<Rc<XPathNSResolver>>, type_: u16, result: Option<&XPathResult>, _can_gc: CanGc, ) -> Result<Root<Dom<XPathResult>>, Error>

source

fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Root<Dom<XPathEvaluator>>

Object Safety§

This trait is not object safe.

Implementors§