[][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:

  • 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 an Alpha3 code and/or a Numeric code.

References

Structs

Alpha2

Alpha-2

Alpha3

Alpha-3

Numeric

Numeric

Constants

ALPHA2_CODES

All Alpha2 codes

ALPHA3_CODES

All Alpha3 codes

NUMERIC_CODES

All Numeric codes