Crate icu_locid_macros[−][src]
icu_locid_macros
is one of the ICU4X components.
This API provides convenience macros for icu_locid
.
Examples
use icu_locid_macros::{language, region, langid}; let lid = langid!("EN_US"); assert_eq!(lid.language, language!("en")); assert_eq!(lid.region, Some(region!("US")));
Macros
langid | A macro allowing for compile-time construction of valid |
language | A macro allowing for compile-time construction of valid |
region | A macro allowing for compile-time construction of valid |
script | A macro allowing for compile-time construction of valid |
variant | A macro allowing for compile-time construction of valid |