Expand description
Unicode Extensions provide information about user preferences in a given locale.
The main struct for this extension is Unicode which contains Keywords and
Attributes.
§Examples
use icu::locid::extensions::unicode::{attribute, key, value, Unicode};
use icu::locid::Locale;
let loc: Locale = "en-US-u-foobar-hc-h12".parse().expect("Parsing failed.");
assert_eq!(
    loc.extensions.unicode.keywords.get(&key!("hc")),
    Some(&value!("h12"))
);
assert!(loc
    .extensions
    .unicode
    .attributes
    .contains(&attribute!("foobar")));Macros§
- attribute
 - A macro allowing for compile-time construction of valid 
Attributesubtags. - key
 - A macro allowing for compile-time construction of valid 
Keysubtags. - value
 - A macro allowing for compile-time construction of valid Unicode 
Valuesubtag. 
Structs§
- Attribute
 - An attribute used in a set of 
Attributes. - Attributes
 - A set of 
Attributeelements as defined inUnicode Extension Attributes. - Key
 - A key used in a list of 
Keywords. - Keywords
 - A list of 
Key-Valuepairs representing functional information about locale’s internationalization preferences. - Unicode
 - Unicode Extensions provide information about user preferences in a given locale.
 - Value
 - A value used in a list of 
Keywords.