Skip to main content

countries

Function countries 

Source
pub const fn countries() -> &'static [Country]
Expand description

Returns the full list of known countries, ordered by ISO 3166-1 alpha-2 code.

ยงExamples

use countries::Country;

assert!(countries::countries().iter().any(|c| c.code == "GB"));