This crate provides a Locale
enumeration, LocaleIdentifier
trait, and a
LocaleString
structure are provided that may be used to parse and construct
locale identifiers in a standards-conformant manner.
It is used by the locale-codes
and locale-settings
crates.
```rust use locale_types::{LocaleIdentifier, LocaleString};
let locale = LocaleString::new("en".tostring()) .withterritory("US".tostring()) .withcodeset("UTF-8".tostring()) .withmodifier("collation=pinyin;currency=CNY".tostring()); println!("{}", locale); ```