web_sys/features/
gen_IdbKeyRange.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "::js_sys::Object",
9 js_name = "IDBKeyRange",
10 typescript_type = "IDBKeyRange"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `IdbKeyRange` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
18 pub type IdbKeyRange;
19 #[wasm_bindgen(catch, method, getter, js_class = "IDBKeyRange", js_name = "lower")]
20 #[doc = "Getter for the `lower` field of this object."]
21 #[doc = ""]
22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lower)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
25 pub fn lower(this: &IdbKeyRange) -> Result<::wasm_bindgen::JsValue, JsValue>;
26 #[wasm_bindgen(catch, method, getter, js_class = "IDBKeyRange", js_name = "upper")]
27 #[doc = "Getter for the `upper` field of this object."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upper)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
32 pub fn upper(this: &IdbKeyRange) -> Result<::wasm_bindgen::JsValue, JsValue>;
33 #[wasm_bindgen(method, getter, js_class = "IDBKeyRange", js_name = "lowerOpen")]
34 #[doc = "Getter for the `lowerOpen` field of this object."]
35 #[doc = ""]
36 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerOpen)"]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
39 pub fn lower_open(this: &IdbKeyRange) -> bool;
40 #[wasm_bindgen(method, getter, js_class = "IDBKeyRange", js_name = "upperOpen")]
41 #[doc = "Getter for the `upperOpen` field of this object."]
42 #[doc = ""]
43 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperOpen)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
46 pub fn upper_open(this: &IdbKeyRange) -> bool;
47 #[wasm_bindgen(catch, static_method_of = "IdbKeyRange", js_class = "IDBKeyRange")]
48 #[doc = "The `bound()` method."]
49 #[doc = ""]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound_static)"]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
53 pub fn bound(
54 lower: &::wasm_bindgen::JsValue,
55 upper: &::wasm_bindgen::JsValue,
56 ) -> Result<IdbKeyRange, JsValue>;
57 #[wasm_bindgen(
58 catch,
59 static_method_of = "IdbKeyRange",
60 js_class = "IDBKeyRange",
61 js_name = "bound"
62 )]
63 #[doc = "The `bound()` method."]
64 #[doc = ""]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound_static)"]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
68 pub fn bound_with_lower_open(
69 lower: &::wasm_bindgen::JsValue,
70 upper: &::wasm_bindgen::JsValue,
71 lower_open: bool,
72 ) -> Result<IdbKeyRange, JsValue>;
73 #[wasm_bindgen(
74 catch,
75 static_method_of = "IdbKeyRange",
76 js_class = "IDBKeyRange",
77 js_name = "bound"
78 )]
79 #[doc = "The `bound()` method."]
80 #[doc = ""]
81 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound_static)"]
82 #[doc = ""]
83 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
84 pub fn bound_with_lower_open_and_upper_open(
85 lower: &::wasm_bindgen::JsValue,
86 upper: &::wasm_bindgen::JsValue,
87 lower_open: bool,
88 upper_open: bool,
89 ) -> Result<IdbKeyRange, JsValue>;
90 #[wasm_bindgen(catch, method, js_class = "IDBKeyRange")]
91 #[doc = "The `includes()` method."]
92 #[doc = ""]
93 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/includes)"]
94 #[doc = ""]
95 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
96 pub fn includes(this: &IdbKeyRange, key: &::wasm_bindgen::JsValue) -> Result<bool, JsValue>;
97 #[wasm_bindgen(
98 catch,
99 static_method_of = "IdbKeyRange",
100 js_class = "IDBKeyRange",
101 js_name = "lowerBound"
102 )]
103 #[doc = "The `lowerBound()` method."]
104 #[doc = ""]
105 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerBound_static)"]
106 #[doc = ""]
107 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
108 pub fn lower_bound(lower: &::wasm_bindgen::JsValue) -> Result<IdbKeyRange, JsValue>;
109 #[wasm_bindgen(
110 catch,
111 static_method_of = "IdbKeyRange",
112 js_class = "IDBKeyRange",
113 js_name = "lowerBound"
114 )]
115 #[doc = "The `lowerBound()` method."]
116 #[doc = ""]
117 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerBound_static)"]
118 #[doc = ""]
119 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
120 pub fn lower_bound_with_open(
121 lower: &::wasm_bindgen::JsValue,
122 open: bool,
123 ) -> Result<IdbKeyRange, JsValue>;
124 #[wasm_bindgen(catch, static_method_of = "IdbKeyRange", js_class = "IDBKeyRange")]
125 #[doc = "The `only()` method."]
126 #[doc = ""]
127 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/only_static)"]
128 #[doc = ""]
129 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
130 pub fn only(value: &::wasm_bindgen::JsValue) -> Result<IdbKeyRange, JsValue>;
131 #[wasm_bindgen(
132 catch,
133 static_method_of = "IdbKeyRange",
134 js_class = "IDBKeyRange",
135 js_name = "upperBound"
136 )]
137 #[doc = "The `upperBound()` method."]
138 #[doc = ""]
139 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperBound_static)"]
140 #[doc = ""]
141 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
142 pub fn upper_bound(upper: &::wasm_bindgen::JsValue) -> Result<IdbKeyRange, JsValue>;
143 #[wasm_bindgen(
144 catch,
145 static_method_of = "IdbKeyRange",
146 js_class = "IDBKeyRange",
147 js_name = "upperBound"
148 )]
149 #[doc = "The `upperBound()` method."]
150 #[doc = ""]
151 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperBound_static)"]
152 #[doc = ""]
153 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
154 pub fn upper_bound_with_open(
155 upper: &::wasm_bindgen::JsValue,
156 open: bool,
157 ) -> Result<IdbKeyRange, JsValue>;
158}