Skip to main content

Module geo

Module geo 

Expand description

Geographic identity types shared across rama.

Continents, countries, languages, scripts and Locales, modelled as closed, code-keyed enums with an Unknown escape hatch. The public surface is std-only (no third-party types), and each enum has a borrowing, Copy *Ref counterpart for zero-copy use.

These types are intended for reuse beyond IP geolocation — e.g. a typed Accept-Language header or proxy location metadata.

Structs§

Locale
A locale: a Language plus an optional Script and Country region.

Enums§

Continent
A continent, identified by its two-letter geolocation code.
ContinentRef
Borrowing, Copy counterpart of Continent.
Country
A country or territory, identified by its ISO 3166-1 alpha-2 code.
CountryRef
Borrowing, Copy counterpart of Country.
Language
A language, keyed by its ISO 639-1 two-letter code.
LanguageRef
Borrowing, Copy counterpart of Language.
Script
A writing system, keyed by its ISO 15924 four-letter code.
ScriptRef
Borrowing, Copy counterpart of Script.