1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
#![allow(unused_imports)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = XPathResult , typescript_type = "XPathResult")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `XPathResult` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub type XPathResult;
# [wasm_bindgen (structural , method , getter , js_class = "XPathResult" , js_name = resultType)]
#[doc = "Getter for the `resultType` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/resultType)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub fn result_type(this: &XPathResult) -> u16;
# [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = numberValue)]
#[doc = "Getter for the `numberValue` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/numberValue)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub fn number_value(this: &XPathResult) -> Result<f64, JsValue>;
# [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = stringValue)]
#[doc = "Getter for the `stringValue` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/stringValue)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub fn string_value(this: &XPathResult) -> Result<String, JsValue>;
# [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = booleanValue)]
#[doc = "Getter for the `booleanValue` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/booleanValue)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub fn boolean_value(this: &XPathResult) -> Result<bool, JsValue>;
#[cfg(feature = "Node")]
# [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = singleNodeValue)]
#[doc = "Getter for the `singleNodeValue` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/singleNodeValue)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Node`, `XPathResult`*"]
pub fn single_node_value(this: &XPathResult) -> Result<Option<Node>, JsValue>;
# [wasm_bindgen (structural , method , getter , js_class = "XPathResult" , js_name = invalidIteratorState)]
#[doc = "Getter for the `invalidIteratorState` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/invalidIteratorState)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub fn invalid_iterator_state(this: &XPathResult) -> bool;
# [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = snapshotLength)]
#[doc = "Getter for the `snapshotLength` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/snapshotLength)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub fn snapshot_length(this: &XPathResult) -> Result<u32, JsValue>;
#[cfg(feature = "Node")]
# [wasm_bindgen (catch , method , structural , js_class = "XPathResult" , js_name = iterateNext)]
#[doc = "The `iterateNext()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/iterateNext)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Node`, `XPathResult`*"]
pub fn iterate_next(this: &XPathResult) -> Result<Option<Node>, JsValue>;
#[cfg(feature = "Node")]
# [wasm_bindgen (catch , method , structural , js_class = "XPathResult" , js_name = snapshotItem)]
#[doc = "The `snapshotItem()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/snapshotItem)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Node`, `XPathResult`*"]
pub fn snapshot_item(this: &XPathResult, index: u32) -> Result<Option<Node>, JsValue>;
}
impl XPathResult {
#[doc = "The `XPathResult.ANY_TYPE` const."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub const ANY_TYPE: u16 = 0i64 as u16;
#[doc = "The `XPathResult.NUMBER_TYPE` const."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub const NUMBER_TYPE: u16 = 1u64 as u16;
#[doc = "The `XPathResult.STRING_TYPE` const."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub const STRING_TYPE: u16 = 2u64 as u16;
#[doc = "The `XPathResult.BOOLEAN_TYPE` const."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub const BOOLEAN_TYPE: u16 = 3u64 as u16;
#[doc = "The `XPathResult.UNORDERED_NODE_ITERATOR_TYPE` const."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub const UNORDERED_NODE_ITERATOR_TYPE: u16 = 4u64 as u16;
#[doc = "The `XPathResult.ORDERED_NODE_ITERATOR_TYPE` const."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub const ORDERED_NODE_ITERATOR_TYPE: u16 = 5u64 as u16;
#[doc = "The `XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE` const."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub const UNORDERED_NODE_SNAPSHOT_TYPE: u16 = 6u64 as u16;
#[doc = "The `XPathResult.ORDERED_NODE_SNAPSHOT_TYPE` const."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub const ORDERED_NODE_SNAPSHOT_TYPE: u16 = 7u64 as u16;
#[doc = "The `XPathResult.ANY_UNORDERED_NODE_TYPE` const."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub const ANY_UNORDERED_NODE_TYPE: u16 = 8u64 as u16;
#[doc = "The `XPathResult.FIRST_ORDERED_NODE_TYPE` const."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `XPathResult`*"]
pub const FIRST_ORDERED_NODE_TYPE: u16 = 9u64 as u16;
}
|