worldwide/region

Types

Continental region a country belongs to.

pub type Region {
  Africa
  Americas
  Asia
  Europe
  Oceania
  Polar
}

Constructors

  • Africa
  • Americas
  • Asia
  • Europe
  • Oceania
  • Polar

Values

pub fn all() -> List(Region)

Returns every region as a typed value.

pub fn to_string(region: Region) -> String

Formats a region the way countries.dev returns it.

Search Document