city-spellcheck is a library that gives city spelling corrections using a fuzzy search that takes distance from supplied gps coordinates into weighting
usestd::fmt;/// All currently supported countries
#[derive(Debug, Copy, Clone)]pubenumCountry{US,CA,}implfmt::Display forCountry{fnfmt(&self, f:&mutfmt::Formatter)->fmt::Result{matchself{Country::US=>write!(f,"US"),Country::CA=>write!(f,"CA"),}}}