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