web_sys/features/
gen_SpeechRecognitionResultList.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 = "SpeechRecognitionResultList",
10 typescript_type = "SpeechRecognitionResultList"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `SpeechRecognitionResultList` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResultList)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResultList`*"]
18 pub type SpeechRecognitionResultList;
19 #[wasm_bindgen(
20 method,
21 getter,
22 js_class = "SpeechRecognitionResultList",
23 js_name = "length"
24 )]
25 #[doc = "Getter for the `length` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResultList/length)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResultList`*"]
30 pub fn length(this: &SpeechRecognitionResultList) -> u32;
31 #[cfg(feature = "SpeechRecognitionResult")]
32 #[wasm_bindgen(method, js_class = "SpeechRecognitionResultList")]
33 #[doc = "The `item()` method."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResultList/item)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`, `SpeechRecognitionResultList`*"]
38 pub fn item(this: &SpeechRecognitionResultList, index: u32) -> SpeechRecognitionResult;
39 #[cfg(feature = "SpeechRecognitionResult")]
40 #[wasm_bindgen(method, js_class = "SpeechRecognitionResultList", indexing_getter)]
41 #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
42 #[doc = ""]
43 #[doc = ""]
44 #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`, `SpeechRecognitionResultList`*"]
45 pub fn get(this: &SpeechRecognitionResultList, index: u32) -> Option<SpeechRecognitionResult>;
46}