Trait stringr::Stringr

source ·
pub trait Stringr {
    // Required methods
    fn remove_chars(&self, chars: HashSet<char>) -> String;
    fn remove_whitespace(&self) -> String;
    fn splitn(&self, n: usize) -> Vec<String>;
    fn splitn_separator(&self, n: usize, separator: &str) -> String;
    fn wildcard_match(
        &self,
        pattern: &str,
        wildcard: &char,
        single_wildcard: &char,
        ignore_casing: bool
    ) -> bool;
}

Required Methods§

source

fn remove_chars(&self, chars: HashSet<char>) -> String

source

fn remove_whitespace(&self) -> String

source

fn splitn(&self, n: usize) -> Vec<String>

source

fn splitn_separator(&self, n: usize, separator: &str) -> String

source

fn wildcard_match( &self, pattern: &str, wildcard: &char, single_wildcard: &char, ignore_casing: bool ) -> bool

Implementations on Foreign Types§

source§

impl Stringr for &str

source§

fn remove_chars(&self, chars: HashSet<char>) -> String

source§

fn remove_whitespace(&self) -> String

source§

fn splitn(&self, n: usize) -> Vec<String>

source§

fn splitn_separator(&self, n: usize, separator: &str) -> String

source§

fn wildcard_match( &self, pattern: &str, wildcard: &char, single_wildcard: &char, ignore_casing: bool ) -> bool

source§

impl Stringr for String

source§

fn remove_chars(&self, chars: HashSet<char>) -> String

source§

fn remove_whitespace(&self) -> String

source§

fn splitn(&self, n: usize) -> Vec<String>

source§

fn splitn_separator(&self, n: usize, separator: &str) -> String

source§

fn wildcard_match( &self, pattern: &str, wildcard: &char, single_wildcard: &char, ignore_casing: bool ) -> bool

Implementors§