web_sys/features/
gen_IntlUtils.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = IntlUtils , typescript_type = "IntlUtils")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `IntlUtils` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntlUtils)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `IntlUtils`*"]
14 pub type IntlUtils;
15 #[cfg(feature = "DisplayNameResult")]
16 # [wasm_bindgen (catch , method , structural , js_class = "IntlUtils" , js_name = getDisplayNames)]
17 #[doc = "The `getDisplayNames()` method."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntlUtils/getDisplayNames)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`, `IntlUtils`*"]
22 pub fn get_display_names(
23 this: &IntlUtils,
24 locales: &::wasm_bindgen::JsValue,
25 ) -> Result<DisplayNameResult, JsValue>;
26 #[cfg(all(feature = "DisplayNameOptions", feature = "DisplayNameResult",))]
27 # [wasm_bindgen (catch , method , structural , js_class = "IntlUtils" , js_name = getDisplayNames)]
28 #[doc = "The `getDisplayNames()` method."]
29 #[doc = ""]
30 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntlUtils/getDisplayNames)"]
31 #[doc = ""]
32 #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`, `DisplayNameResult`, `IntlUtils`*"]
33 pub fn get_display_names_with_options(
34 this: &IntlUtils,
35 locales: &::wasm_bindgen::JsValue,
36 options: &DisplayNameOptions,
37 ) -> Result<DisplayNameResult, JsValue>;
38 #[cfg(feature = "LocaleInfo")]
39 # [wasm_bindgen (catch , method , structural , js_class = "IntlUtils" , js_name = getLocaleInfo)]
40 #[doc = "The `getLocaleInfo()` method."]
41 #[doc = ""]
42 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntlUtils/getLocaleInfo)"]
43 #[doc = ""]
44 #[doc = "*This API requires the following crate features to be activated: `IntlUtils`, `LocaleInfo`*"]
45 pub fn get_locale_info(
46 this: &IntlUtils,
47 locales: &::wasm_bindgen::JsValue,
48 ) -> Result<LocaleInfo, JsValue>;
49}