Trait script::dom::bindings::codegen::Bindings::XPathEvaluatorBinding::XPathEvaluator_Binding::XPathEvaluatorMethods
source · 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§
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>>
Object Safety§
This trait is not object safe.