Function iso3166_3::code [] [src]

pub fn code<'a>(code_given: &str) -> Option<FormerCountryCode<'a>>

Returns an Option of the FormerCountryCode with the given code.

Examples

An example of a valid usage:

extern crate iso3166_3;

fn main() {
    let countries = iso3166_3::code("DDDE").unwrap();
}