maxcountryman_web_sys/features/
gen_XPathExpression.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XPathExpression , typescript_type = "XPathExpression")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `XPathExpression` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathExpression)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `XPathExpression`*"]
13 pub type XPathExpression;
14 #[cfg(all(feature = "Node", feature = "XPathResult",))]
15 # [wasm_bindgen (catch , method , structural , js_class = "XPathExpression" , js_name = evaluate)]
16 #[doc = "The `evaluate()` method."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathExpression/evaluate)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathExpression`, `XPathResult`*"]
21 pub fn evaluate(this: &XPathExpression, context_node: &Node) -> Result<XPathResult, JsValue>;
22 #[cfg(all(feature = "Node", feature = "XPathResult",))]
23 # [wasm_bindgen (catch , method , structural , js_class = "XPathExpression" , js_name = evaluate)]
24 #[doc = "The `evaluate()` method."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathExpression/evaluate)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathExpression`, `XPathResult`*"]
29 pub fn evaluate_with_type(
30 this: &XPathExpression,
31 context_node: &Node,
32 type_: u16,
33 ) -> Result<XPathResult, JsValue>;
34 #[cfg(all(feature = "Node", feature = "XPathResult",))]
35 # [wasm_bindgen (catch , method , structural , js_class = "XPathExpression" , js_name = evaluate)]
36 #[doc = "The `evaluate()` method."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathExpression/evaluate)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathExpression`, `XPathResult`*"]
41 pub fn evaluate_with_type_and_result(
42 this: &XPathExpression,
43 context_node: &Node,
44 type_: u16,
45 result: Option<&::js_sys::Object>,
46 ) -> Result<XPathResult, JsValue>;
47}