Structs§
- Currency
Code - A normalized 3-letter currency code identifier.
- Language
Code - A normalized 2-letter or 3-letter language subtag.
- Locale
Match - A simple locale match result.
- Locale
Preference - A normalized locale preference with an explicit priority.
- Locale
Tag - A normalized locale tag.
- Locale
TagParts - Parsed locale tag components.
- Region
Code - A normalized region subtag.
- Script
Code - A normalized 4-letter writing script subtag.
- Time
Zone Id - A syntactically valid IANA-shaped time zone identifier.
- Time
Zone Offset - A fixed UTC offset in signed minutes.
Enums§
- Time
Zone - A time zone represented by either an IANA-shaped identifier or a fixed offset.
- Time
Zone Parse Error - A time zone or fixed-offset parse error.
Functions§
- best_
locale_ match - Finds the best available locale for a requested locale.
- fallback_
chain - Builds a most-specific to least-specific fallback chain for a locale tag.
- is_
currency_ code - Returns
truewhen the input is a 3-letter currency code identifier. - is_
language_ code - Returns
truewhen the input is a simple 2-letter or 3-letter language subtag. - is_
locale_ tag - Returns
truewhen the input is a supported locale tag shape. - is_
region_ code - Returns
truewhen the input is a 2-letter or 3-digit region subtag. - is_
script_ code - Returns
truewhen the input is a 4-letter script subtag. - is_
time_ zone - Returns
truewhen the input is a valid IANA-shaped identifier or fixed offset. - is_
time_ zone_ id - Returns
truewhen the input is a syntactically valid IANA-shaped identifier. - is_
time_ zone_ offset - Returns
truewhen the input is a valid fixed time zone offset. - normalize_
currency_ code - Normalizes a 3-letter currency code identifier to uppercase.
- normalize_
language_ code - Normalizes a simple language subtag to lowercase.
- normalize_
locale_ tag - Normalizes a locale tag when it is syntactically valid for this crate’s subset.
- normalize_
region_ code - Normalizes a 2-letter or 3-digit region subtag.
- normalize_
script_ code - Normalizes a 4-letter script subtag to title case.
- parse_
currency_ code - Parses a currency code identifier and normalizes it to uppercase.
- parse_
language_ code - Parses a language subtag and normalizes it to lowercase.
- parse_
locale_ tag - Parses a locale tag and normalizes its core language, script, and region subtags.
- parse_
locale_ tag_ parts - Parses a locale tag into normalized parts.
- parse_
region_ code - Parses a region subtag and normalizes alphabetic regions to uppercase.
- parse_
script_ code - Parses a script subtag and normalizes it to title case.
- parse_
time_ zone - Parses a time zone from an IANA-shaped identifier or fixed offset.
- parse_
time_ zone_ id - Parses a syntactically valid IANA-shaped time zone identifier.
- parse_
time_ zone_ offset - Parses a fixed time zone offset.
- split_
time_ zone_ id - Splits a valid time zone identifier into owned segments.
- try_
parse_ time_ zone - Parses a time zone from an IANA-shaped identifier or fixed offset with diagnostic errors.
- try_
parse_ time_ zone_ offset - Parses a fixed time zone offset with diagnostic errors.