[][src]Struct simple_ml::StringToMatch

pub struct StringToMatch {
    pub string1: String,
    pub string2: String,
}

Fields

string1: Stringstring2: String

Implementations

impl StringToMatch[src]

pub fn compare_percentage(
    &self,
    weightage_for_position: f64,
    weightage_for_presence: f64
) -> f64
[src]

pub fn clean_string(s1: String) -> String[src]

pub fn compare_chars(&self) -> f64[src]

pub fn compare_position(&self) -> f64[src]

pub fn fuzzy_subset(&self, n_gram: usize) -> f64[src]

pub fn split_alpha_numericals(string: String) -> (String, String)[src]

pub fn char_count(string: String) -> BTreeMap<char, u32>[src]

pub fn frequent_char(string: String) -> char[src]

pub fn char_replace(
    string: String,
    find: char,
    replace: String,
    operation: &str
) -> String
[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,