ISO 3166 Static Data
This crate provides a generated enumeration for use as an ISO 3166 code enum
Examples
use Country;
let country1 = try_from_alpha2.expect;
let country2 = try_from_alpha3.expect;
assert_eq!;
The FromStr implementation is more forgiving, as it will
remove any leading/trailing whitespace, and converting to an upper-case string.
use FromStr;
use Country;
let country1 = from_str.expect;
let country2 = from_str.expect;
assert_eq!;
Some failure conditions:
use FromStr;
use Country;
let _ = try_from_alpha2.expect_err;
let _ = try_from_alpha3.expect_err;
let _ = from_str.expect_err;