pub struct StringToMatch {
pub string1: String,
pub string2: String,
}Fields§
§string1: String§string2: StringImplementations§
Source§impl StringToMatch
impl StringToMatch
pub fn compare_percentage( &self, weightage_for_position: f64, weightage_for_presence: f64, ) -> f64
pub fn clean_string(s1: String) -> String
pub fn compare_chars(&self) -> f64
pub fn compare_position(&self) -> f64
pub fn fuzzy_subset(&self, n_gram: usize) -> f64
pub fn split_alpha_numericals(string: String) -> (String, String)
pub fn char_count(string: String) -> BTreeMap<char, u32>
pub fn frequent_char(string: String) -> char
pub fn char_replace( string: String, find: char, replace: String, operation: &str, ) -> String
Auto Trait Implementations§
impl Freeze for StringToMatch
impl RefUnwindSafe for StringToMatch
impl Send for StringToMatch
impl Sync for StringToMatch
impl Unpin for StringToMatch
impl UnwindSafe for StringToMatch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more