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