Docs.rs
iso3166-1-1.0.1
iso3166-1 1.0.1
Permalink
Docs.rs crate page
ISC
Links
Homepage
Documentation
Repository
crates.io
Source
Owners
taiyaeix
Dependencies
Versions
38.89%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Crate iso3166_1
iso3166_
1
1.0.1
All Items
Crate Items
Structs
Functions
Crate
iso3166_
1
Copy item path
Source
Structs
§
Country
Code
Struct that contains the data for each Country Code defined by ISO 3166-1, including the following pieces of information:
Functions
§
all
Returns a
Vec
of all
CountryCode
s defined by ISO 3166-1.
alpha2
Returns an
Option
of a
CountryCode
with the given alpha2 code.
alpha3
Returns an
Option
of a
CountryCode
with the given alpha3 code.
name
Returns an
Option
of a
CountryCode
with the given name.
num
Returns an
Option
of a
CountryCode
with the given numeric value.
num_
range
Returns a
Vec
of
CountryCode
s that have a numeric value within the range of the
from
and
to
given. The from and to are optional, and can either be
None
or
Some(&str)
for variations of the range wanted.