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 (extends = :: js_sys :: Object , js_name = IDBKeyRange , typescript_type = "IDBKeyRange")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `IdbKeyRange` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
14 pub type IdbKeyRange;
15 # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBKeyRange" , js_name = lower)]
16 #[doc = "Getter for the `lower` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lower)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
21 pub fn lower(this: &IdbKeyRange) -> Result<::wasm_bindgen::JsValue, JsValue>;
22 # [wasm_bindgen (structural , catch , method , getter , js_class = "IDBKeyRange" , js_name = upper)]
23 #[doc = "Getter for the `upper` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upper)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
28 pub fn upper(this: &IdbKeyRange) -> Result<::wasm_bindgen::JsValue, JsValue>;
29 # [wasm_bindgen (structural , method , getter , js_class = "IDBKeyRange" , js_name = lowerOpen)]
30 #[doc = "Getter for the `lowerOpen` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerOpen)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
35 pub fn lower_open(this: &IdbKeyRange) -> bool;
36 # [wasm_bindgen (structural , method , getter , js_class = "IDBKeyRange" , js_name = upperOpen)]
37 #[doc = "Getter for the `upperOpen` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperOpen)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
42 pub fn upper_open(this: &IdbKeyRange) -> bool;
43 # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = bound)]
44 #[doc = "The `bound()` method."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound_static)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
49 pub fn bound(
50 lower: &::wasm_bindgen::JsValue,
51 upper: &::wasm_bindgen::JsValue,
52 ) -> Result<IdbKeyRange, JsValue>;
53 # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = bound)]
54 #[doc = "The `bound()` method."]
55 #[doc = ""]
56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound_static)"]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
59 pub fn bound_with_lower_open(
60 lower: &::wasm_bindgen::JsValue,
61 upper: &::wasm_bindgen::JsValue,
62 lower_open: bool,
63 ) -> Result<IdbKeyRange, JsValue>;
64 # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = bound)]
65 #[doc = "The `bound()` method."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound_static)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
70 pub fn bound_with_lower_open_and_upper_open(
71 lower: &::wasm_bindgen::JsValue,
72 upper: &::wasm_bindgen::JsValue,
73 lower_open: bool,
74 upper_open: bool,
75 ) -> Result<IdbKeyRange, JsValue>;
76 # [wasm_bindgen (catch , method , structural , js_class = "IDBKeyRange" , js_name = includes)]
77 #[doc = "The `includes()` method."]
78 #[doc = ""]
79 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/includes)"]
80 #[doc = ""]
81 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
82 pub fn includes(this: &IdbKeyRange, key: &::wasm_bindgen::JsValue) -> Result<bool, JsValue>;
83 # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = lowerBound)]
84 #[doc = "The `lowerBound()` method."]
85 #[doc = ""]
86 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerBound_static)"]
87 #[doc = ""]
88 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
89 pub fn lower_bound(lower: &::wasm_bindgen::JsValue) -> Result<IdbKeyRange, JsValue>;
90 # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = lowerBound)]
91 #[doc = "The `lowerBound()` method."]
92 #[doc = ""]
93 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerBound_static)"]
94 #[doc = ""]
95 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
96 pub fn lower_bound_with_open(
97 lower: &::wasm_bindgen::JsValue,
98 open: bool,
99 ) -> Result<IdbKeyRange, JsValue>;
100 # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = only)]
101 #[doc = "The `only()` method."]
102 #[doc = ""]
103 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/only_static)"]
104 #[doc = ""]
105 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
106 pub fn only(value: &::wasm_bindgen::JsValue) -> Result<IdbKeyRange, JsValue>;
107 # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = upperBound)]
108 #[doc = "The `upperBound()` method."]
109 #[doc = ""]
110 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperBound_static)"]
111 #[doc = ""]
112 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
113 pub fn upper_bound(upper: &::wasm_bindgen::JsValue) -> Result<IdbKeyRange, JsValue>;
114 # [wasm_bindgen (catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = upperBound)]
115 #[doc = "The `upperBound()` method."]
116 #[doc = ""]
117 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperBound_static)"]
118 #[doc = ""]
119 #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"]
120 pub fn upper_bound_with_open(
121 upper: &::wasm_bindgen::JsValue,
122 open: bool,
123 ) -> Result<IdbKeyRange, JsValue>;
124}