[][src]Trait rustils::string::StringUtils

pub trait StringUtils {
    fn adv_contains_all_chars(
        &self,
        search: &[char]
    ) -> (bool, Vec<usize>, Vec<char>);
fn adv_contains_all_strs(
        &self,
        search: &[&str]
    ) -> (bool, Vec<usize>, Vec<String>);
fn adv_contains_any_char(&self, search: &[char]) -> (bool, usize, char);
fn adv_contains_any_str(&self, search: &[&str]) -> (bool, usize, String);
fn adv_contains_none_char(&self, search: &[char]) -> (bool, usize, char);
fn adv_contains_none_str(&self, search: &[&str]) -> (bool, usize, String);
fn adv_ends_with(&self, search: &str) -> (bool, String);
fn adv_has_alpha(&self) -> (bool, Vec<bool>);
fn adv_has_alphanumeric(&self) -> (bool, Vec<bool>);
fn adv_has_alphanumeric_space(&self) -> (bool, Vec<bool>);
fn adv_has_alpha_space(&self) -> (bool, Vec<bool>);
fn adv_has_lowercase(&self) -> (bool, Vec<bool>);
fn adv_has_numeric(&self) -> (bool, Vec<bool>);
fn adv_has_numeric_space(&self) -> (bool, Vec<bool>);
fn adv_has_uppercase(&self) -> (bool, Vec<bool>);
fn adv_has_whitespace(&self) -> (bool, Vec<bool>);
fn adv_is_alpha(&self) -> (bool, Vec<bool>);
fn adv_is_alphanumeric(&self) -> (bool, Vec<bool>);
fn adv_is_alphanumeric_space(&self) -> (bool, Vec<bool>);
fn adv_is_alpha_space(&self) -> (bool, Vec<bool>);
fn adv_is_lowercase(&self) -> (bool, Vec<bool>);
fn adv_is_numeric(&self) -> (bool, Vec<bool>);
fn adv_is_numeric_space(&self) -> (bool, Vec<bool>);
fn adv_is_uppercase(&self) -> (bool, Vec<bool>);
fn adv_is_whitespace(&self) -> (bool, Vec<bool>);
fn adv_remove_all_regex(
        &self,
        regex: &str
    ) -> (bool, Vec<(usize, usize)>, String);
fn adv_remove_regex(&self, regex: &str) -> (bool, usize, String);
fn adv_starts_with(&self, search: &str) -> (bool, String);
fn contains_all_chars(&self, search: &[char]) -> bool;
fn contains_all_strs(&self, search: &[&str]) -> bool;
fn contains_any_char(&self, search: &[char]) -> bool;
fn contains_any_str(&self, search: &[&str]) -> bool;
fn contains_none_char(&self, search: &[char]) -> bool;
fn contains_none_str(&self, search: &[&str]) -> bool;
fn cmp_ignore_case(&self, cmp: &str) -> bool;
fn difference(&self, diff: &str) -> Vec<usize>;
fn find_char(&self, search: char) -> usize;
fn find_char_opt(&self, search: char) -> Option<usize>;
fn has_alpha(&self) -> bool;
fn has_alphanumeric(&self) -> bool;
fn has_alphanumeric_space(&self) -> bool;
fn has_alpha_space(&self) -> bool;
fn has_lowercase(&self) -> bool;
fn has_numeric(&self) -> bool;
fn has_numeric_space(&self) -> bool;
fn has_uppercase(&self) -> bool;
fn has_whitespace(&self) -> bool;
fn is_alpha(&self) -> bool;
fn is_alphanumeric(&self) -> bool;
fn is_alphanumeric_space(&self) -> bool;
fn is_alpha_space(&self) -> bool;
fn is_lowercase(&self) -> bool;
fn is_numeric(&self) -> bool;
fn is_numeric_space(&self) -> bool;
fn is_uppercase(&self) -> bool;
fn is_whitespace(&self) -> bool;
fn peek(&self) -> char;
fn peek_opt(&self) -> Option<char>;
fn remove_all_regex(&self, regex: &str) -> String;
fn remove_all_regex_mut(&mut self, regex: &str) -> bool;
fn remove_regex(&self, regex: &str) -> String;
fn remove_regex_mut(&mut self, regex: &str) -> bool;
fn reverse(&self) -> String;
fn reverse_mut(&mut self);
fn reverse_str(&self) -> &'static str; }

Required methods

fn adv_contains_all_chars(
    &self,
    search: &[char]
) -> (bool, Vec<usize>, Vec<char>)

fn adv_contains_all_strs(
    &self,
    search: &[&str]
) -> (bool, Vec<usize>, Vec<String>)

fn adv_contains_any_char(&self, search: &[char]) -> (bool, usize, char)

fn adv_contains_any_str(&self, search: &[&str]) -> (bool, usize, String)

fn adv_contains_none_char(&self, search: &[char]) -> (bool, usize, char)

fn adv_contains_none_str(&self, search: &[&str]) -> (bool, usize, String)

fn adv_ends_with(&self, search: &str) -> (bool, String)

fn adv_has_alpha(&self) -> (bool, Vec<bool>)

fn adv_has_alphanumeric(&self) -> (bool, Vec<bool>)

fn adv_has_alphanumeric_space(&self) -> (bool, Vec<bool>)

fn adv_has_alpha_space(&self) -> (bool, Vec<bool>)

fn adv_has_lowercase(&self) -> (bool, Vec<bool>)

fn adv_has_numeric(&self) -> (bool, Vec<bool>)

fn adv_has_numeric_space(&self) -> (bool, Vec<bool>)

fn adv_has_uppercase(&self) -> (bool, Vec<bool>)

fn adv_has_whitespace(&self) -> (bool, Vec<bool>)

fn adv_is_alpha(&self) -> (bool, Vec<bool>)

fn adv_is_alphanumeric(&self) -> (bool, Vec<bool>)

fn adv_is_alphanumeric_space(&self) -> (bool, Vec<bool>)

fn adv_is_alpha_space(&self) -> (bool, Vec<bool>)

fn adv_is_lowercase(&self) -> (bool, Vec<bool>)

fn adv_is_numeric(&self) -> (bool, Vec<bool>)

fn adv_is_numeric_space(&self) -> (bool, Vec<bool>)

fn adv_is_uppercase(&self) -> (bool, Vec<bool>)

fn adv_is_whitespace(&self) -> (bool, Vec<bool>)

fn adv_remove_all_regex(
    &self,
    regex: &str
) -> (bool, Vec<(usize, usize)>, String)

fn adv_remove_regex(&self, regex: &str) -> (bool, usize, String)

fn adv_starts_with(&self, search: &str) -> (bool, String)

fn contains_all_chars(&self, search: &[char]) -> bool

fn contains_all_strs(&self, search: &[&str]) -> bool

fn contains_any_char(&self, search: &[char]) -> bool

fn contains_any_str(&self, search: &[&str]) -> bool

fn contains_none_char(&self, search: &[char]) -> bool

fn contains_none_str(&self, search: &[&str]) -> bool

fn cmp_ignore_case(&self, cmp: &str) -> bool

fn difference(&self, diff: &str) -> Vec<usize>

fn find_char(&self, search: char) -> usize

fn find_char_opt(&self, search: char) -> Option<usize>

fn has_alpha(&self) -> bool

fn has_alphanumeric(&self) -> bool

fn has_alphanumeric_space(&self) -> bool

fn has_alpha_space(&self) -> bool

fn has_lowercase(&self) -> bool

fn has_numeric(&self) -> bool

fn has_numeric_space(&self) -> bool

fn has_uppercase(&self) -> bool

fn has_whitespace(&self) -> bool

fn is_alpha(&self) -> bool

fn is_alphanumeric(&self) -> bool

fn is_alphanumeric_space(&self) -> bool

fn is_alpha_space(&self) -> bool

fn is_lowercase(&self) -> bool

fn is_numeric(&self) -> bool

fn is_numeric_space(&self) -> bool

fn is_uppercase(&self) -> bool

fn is_whitespace(&self) -> bool

fn peek(&self) -> char

fn peek_opt(&self) -> Option<char>

fn remove_all_regex(&self, regex: &str) -> String

fn remove_all_regex_mut(&mut self, regex: &str) -> bool

fn remove_regex(&self, regex: &str) -> String

fn remove_regex_mut(&mut self, regex: &str) -> bool

fn reverse(&self) -> String

fn reverse_mut(&mut self)

fn reverse_str(&self) -> &'static str

Loading content...

Implementations on Foreign Types

impl StringUtils for &'static str[src]

impl StringUtils for String[src]

Loading content...

Implementors

Loading content...