Crate locale-types
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.
Example
use ;
let locale = new.unwrap
.with_territory.unwrap
.with_code_set.unwrap
.with_modifier.unwrap;
println!;
History
- 0.4.0 - updated the interface
LocaleIdentifier
to return LocaleError on constructor errors. - 0.3.0 - updated module structure.
- 0.1.0 - extracted from simple-locale.