[−][src]Module dia_i18n::iso_3166_1
ISO 3166-1
Features
-
All ISO codes are in upper case.
-
For constants:
- Items are sorted by codes (not country names), in ascending order.
- Items do not have duplicates.
Notes
-
Updated time:
ALPHA2_CODES
: May 11th, 2019.ALPHA3_CODES
: May 11th, 2019.NUMERIC_CODES
: May 11th, 2019.
-
Reserved codes are not included.
-
Trait implementations of structs, such as
Eq
,PartialEq
,Ord
,PartialOrd
,Hash
... only work with codes. Country names are not involved. -
Display
implementations print the code. -
Country names are normally in English. Although it's not guaranteed. So they should only be used as references.
-
Any country is not guaranteed to have codes in all types. For example, one might have an
Alpha2
code, but might not have anAlpha3
code and/or aNumeric
code.
References
Structs
Alpha2 | Alpha-2 |
Alpha3 | Alpha-3 |
Numeric | Numeric |
Constants
ALPHA2_CODES | All |
ALPHA3_CODES | All |
NUMERIC_CODES | All |