city-spellcheck 0.1.1

city-spellcheck is a library that gives city spelling corrections using a fuzzy search that takes distance from supplied gps coordinates into weighting
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::fmt;

/// All currently supported countries
#[derive(Debug, Copy, Clone)]
pub enum Country {
    US,
    CA,
}

impl fmt::Display for Country {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        match self {
            Country::US => write!(f, "US"),
            Country::CA => write!(f, "CA"),
        }
    }
}