Skip to main content

country_from_code

Function country_from_code 

Source
pub fn country_from_code(code: &str) -> Option<&'static str>
Expand description

Map a 2-char country code (VIN positions 1-2) to a country name.

Recognises the prefixes covered by the test fixtures we ship: EU, North America, key Asian and South American manufacturers. For unmapped ranges, returns None.