1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SpeechGrammarList , typescript_type = "SpeechGrammarList")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `SpeechGrammarList` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"]
13     pub type SpeechGrammarList;
14     # [wasm_bindgen (structural , method , getter , js_class = "SpeechGrammarList" , js_name = length)]
15     #[doc = "Getter for the `length` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/length)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"]
length(this: &SpeechGrammarList) -> u3220     pub fn length(this: &SpeechGrammarList) -> u32;
21     #[wasm_bindgen(catch, constructor, js_class = "SpeechGrammarList")]
22     #[doc = "The `new SpeechGrammarList(..)` constructor, creating a new instance of `SpeechGrammarList`."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/SpeechGrammarList)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"]
new() -> Result<SpeechGrammarList, JsValue>27     pub fn new() -> Result<SpeechGrammarList, JsValue>;
28     # [wasm_bindgen (catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromString)]
29     #[doc = "The `addFromString()` method."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromString)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"]
add_from_string(this: &SpeechGrammarList, string: &str) -> Result<(), JsValue>34     pub fn add_from_string(this: &SpeechGrammarList, string: &str) -> Result<(), JsValue>;
35     # [wasm_bindgen (catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromString)]
36     #[doc = "The `addFromString()` method."]
37     #[doc = ""]
38     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromString)"]
39     #[doc = ""]
40     #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"]
add_from_string_with_weight( this: &SpeechGrammarList, string: &str, weight: f32, ) -> Result<(), JsValue>41     pub fn add_from_string_with_weight(
42         this: &SpeechGrammarList,
43         string: &str,
44         weight: f32,
45     ) -> Result<(), JsValue>;
46     # [wasm_bindgen (catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromURI)]
47     #[doc = "The `addFromURI()` method."]
48     #[doc = ""]
49     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromURI)"]
50     #[doc = ""]
51     #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"]
add_from_uri(this: &SpeechGrammarList, src: &str) -> Result<(), JsValue>52     pub fn add_from_uri(this: &SpeechGrammarList, src: &str) -> Result<(), JsValue>;
53     # [wasm_bindgen (catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromURI)]
54     #[doc = "The `addFromURI()` method."]
55     #[doc = ""]
56     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromURI)"]
57     #[doc = ""]
58     #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"]
add_from_uri_with_weight( this: &SpeechGrammarList, src: &str, weight: f32, ) -> Result<(), JsValue>59     pub fn add_from_uri_with_weight(
60         this: &SpeechGrammarList,
61         src: &str,
62         weight: f32,
63     ) -> Result<(), JsValue>;
64     #[cfg(feature = "SpeechGrammar")]
65     # [wasm_bindgen (catch , method , structural , js_class = "SpeechGrammarList" , js_name = item)]
66     #[doc = "The `item()` method."]
67     #[doc = ""]
68     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/item)"]
69     #[doc = ""]
70     #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`, `SpeechGrammarList`*"]
item(this: &SpeechGrammarList, index: u32) -> Result<SpeechGrammar, JsValue>71     pub fn item(this: &SpeechGrammarList, index: u32) -> Result<SpeechGrammar, JsValue>;
72     #[cfg(feature = "SpeechGrammar")]
73     #[wasm_bindgen(
74         catch,
75         method,
76         structural,
77         js_class = "SpeechGrammarList",
78         indexing_getter
79     )]
80     #[doc = "Indexing getter."]
81     #[doc = ""]
82     #[doc = ""]
83     #[doc = ""]
84     #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`, `SpeechGrammarList`*"]
get(this: &SpeechGrammarList, index: u32) -> Result<SpeechGrammar, JsValue>85     pub fn get(this: &SpeechGrammarList, index: u32) -> Result<SpeechGrammar, JsValue>;
86 }
87