Skip to main content

web_sys/features/
gen_Highlight.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Highlight , typescript_type = "Highlight")]
9    #[derive(Debug, Clone, PartialEq, Eq)]
10    #[doc = "The `Highlight` class."]
11    #[doc = ""]
12    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Highlight)"]
13    #[doc = ""]
14    #[doc = "*This API requires the following crate features to be activated: `Highlight`*"]
15    #[doc = ""]
16    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
17    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
18    pub type Highlight;
19    #[cfg(web_sys_unstable_apis)]
20    # [wasm_bindgen (structural , method , getter , js_class = "Highlight" , js_name = size)]
21    #[doc = "Getter for the `size` field of this object."]
22    #[doc = ""]
23    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Highlight/size)"]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `Highlight`*"]
26    #[doc = ""]
27    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
28    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
29    pub fn size(this: &Highlight) -> u32;
30    #[cfg(web_sys_unstable_apis)]
31    # [wasm_bindgen (structural , method , getter , js_class = "Highlight" , js_name = priority)]
32    #[doc = "Getter for the `priority` field of this object."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Highlight/priority)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `Highlight`*"]
37    #[doc = ""]
38    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
39    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
40    pub fn priority(this: &Highlight) -> i32;
41    #[cfg(web_sys_unstable_apis)]
42    # [wasm_bindgen (structural , method , setter , js_class = "Highlight" , js_name = priority)]
43    #[doc = "Setter for the `priority` field of this object."]
44    #[doc = ""]
45    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Highlight/priority)"]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `Highlight`*"]
48    #[doc = ""]
49    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
51    pub fn set_priority(this: &Highlight, value: i32);
52    #[cfg(web_sys_unstable_apis)]
53    #[cfg(feature = "HighlightType")]
54    # [wasm_bindgen (structural , method , getter , js_class = "Highlight" , js_name = type)]
55    #[doc = "Getter for the `type` field of this object."]
56    #[doc = ""]
57    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Highlight/type)"]
58    #[doc = ""]
59    #[doc = "*This API requires the following crate features to be activated: `Highlight`, `HighlightType`*"]
60    #[doc = ""]
61    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
62    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
63    pub fn type_(this: &Highlight) -> HighlightType;
64    #[cfg(web_sys_unstable_apis)]
65    #[cfg(feature = "HighlightType")]
66    # [wasm_bindgen (structural , method , setter , js_class = "Highlight" , js_name = type)]
67    #[doc = "Setter for the `type` field of this object."]
68    #[doc = ""]
69    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Highlight/type)"]
70    #[doc = ""]
71    #[doc = "*This API requires the following crate features to be activated: `Highlight`, `HighlightType`*"]
72    #[doc = ""]
73    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
74    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
75    pub fn set_type(this: &Highlight, value: HighlightType);
76    #[cfg(web_sys_unstable_apis)]
77    #[cfg(feature = "AbstractRange")]
78    #[wasm_bindgen(catch, constructor, variadic, js_class = "Highlight")]
79    #[doc = "The `new Highlight(..)` constructor, creating a new instance of `Highlight`."]
80    #[doc = ""]
81    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Highlight/Highlight)"]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `AbstractRange`, `Highlight`*"]
84    #[doc = ""]
85    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
86    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
87    pub fn new(initial_ranges: &[AbstractRange]) -> Result<Highlight, JsValue>;
88    #[cfg(web_sys_unstable_apis)]
89    #[cfg(feature = "AbstractRange")]
90    # [wasm_bindgen (method , structural , js_class = "Highlight" , js_name = add)]
91    #[doc = "The `add()` method."]
92    #[doc = ""]
93    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Highlight/add)"]
94    #[doc = ""]
95    #[doc = "*This API requires the following crate features to be activated: `AbstractRange`, `Highlight`*"]
96    #[doc = ""]
97    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
98    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
99    pub fn add(this: &Highlight, value: &AbstractRange) -> Highlight;
100    #[cfg(web_sys_unstable_apis)]
101    # [wasm_bindgen (method , structural , js_class = "Highlight" , js_name = clear)]
102    #[doc = "The `clear()` method."]
103    #[doc = ""]
104    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Highlight/clear)"]
105    #[doc = ""]
106    #[doc = "*This API requires the following crate features to be activated: `Highlight`*"]
107    #[doc = ""]
108    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
109    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
110    pub fn clear(this: &Highlight);
111    #[cfg(web_sys_unstable_apis)]
112    #[cfg(feature = "AbstractRange")]
113    # [wasm_bindgen (method , structural , js_class = "Highlight" , js_name = delete)]
114    #[doc = "The `delete()` method."]
115    #[doc = ""]
116    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Highlight/delete)"]
117    #[doc = ""]
118    #[doc = "*This API requires the following crate features to be activated: `AbstractRange`, `Highlight`*"]
119    #[doc = ""]
120    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
121    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
122    pub fn delete(this: &Highlight, value: &AbstractRange) -> bool;
123    #[cfg(web_sys_unstable_apis)]
124    #[cfg(feature = "AbstractRange")]
125    # [wasm_bindgen (catch , method , structural , js_class = "Highlight" , js_name = forEach)]
126    #[doc = "The `forEach()` method."]
127    #[doc = ""]
128    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Highlight/forEach)"]
129    #[doc = ""]
130    #[doc = "*This API requires the following crate features to be activated: `AbstractRange`, `Highlight`*"]
131    #[doc = ""]
132    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
133    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
134    pub fn for_each(
135        this: &Highlight,
136        callback: &::js_sys::Function<fn(AbstractRange) -> ::js_sys::Undefined>,
137    ) -> Result<(), JsValue>;
138    #[cfg(web_sys_unstable_apis)]
139    #[cfg(feature = "AbstractRange")]
140    # [wasm_bindgen (method , structural , js_class = "Highlight" , js_name = has)]
141    #[doc = "The `has()` method."]
142    #[doc = ""]
143    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Highlight/has)"]
144    #[doc = ""]
145    #[doc = "*This API requires the following crate features to be activated: `AbstractRange`, `Highlight`*"]
146    #[doc = ""]
147    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
148    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
149    pub fn has(this: &Highlight, value: &AbstractRange) -> bool;
150    #[cfg(web_sys_unstable_apis)]
151    #[cfg(feature = "AbstractRange")]
152    # [wasm_bindgen (method , structural , js_class = "Highlight" , js_name = entries)]
153    #[doc = "The `entries()` method."]
154    #[doc = ""]
155    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Highlight/entries)"]
156    #[doc = ""]
157    #[doc = "*This API requires the following crate features to be activated: `AbstractRange`, `Highlight`*"]
158    #[doc = ""]
159    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
160    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
161    pub fn entries(
162        this: &Highlight,
163    ) -> ::js_sys::Iterator<::js_sys::ArrayTuple<(AbstractRange, AbstractRange)>>;
164    #[cfg(web_sys_unstable_apis)]
165    #[cfg(feature = "AbstractRange")]
166    # [wasm_bindgen (method , structural , js_class = "Highlight" , js_name = keys)]
167    #[doc = "The `keys()` method."]
168    #[doc = ""]
169    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Highlight/keys)"]
170    #[doc = ""]
171    #[doc = "*This API requires the following crate features to be activated: `AbstractRange`, `Highlight`*"]
172    #[doc = ""]
173    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
174    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
175    pub fn keys(this: &Highlight) -> ::js_sys::Iterator<AbstractRange>;
176    #[cfg(web_sys_unstable_apis)]
177    #[cfg(feature = "AbstractRange")]
178    # [wasm_bindgen (method , structural , js_class = "Highlight" , js_name = values)]
179    #[doc = "The `values()` method."]
180    #[doc = ""]
181    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Highlight/values)"]
182    #[doc = ""]
183    #[doc = "*This API requires the following crate features to be activated: `AbstractRange`, `Highlight`*"]
184    #[doc = ""]
185    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
186    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
187    pub fn values(this: &Highlight) -> ::js_sys::Iterator<AbstractRange>;
188}