[][src]Struct city_spellcheck::FuzzyResult

pub struct FuzzyResult { /* fields omitted */ }

FuzzyResult represents a result from our location weighted fuzzy search. Includes a score where 0 is worst and 1 is perfect match.

Methods

impl FuzzyResult
[src]

pub fn new(city_data: City, score: f32) -> FuzzyResult
[src]

Takes in a City instance and score, and instantiates a new FuzzyResult Which includes human readable formatting of city name, region and country

Trait Implementations

impl Debug for FuzzyResult
[src]

impl Serialize for FuzzyResult
[src]

impl<'de> Deserialize<'de> for FuzzyResult
[src]

Auto Trait Implementations

impl Send for FuzzyResult

impl Sync for FuzzyResult

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]