pub trait StrUtils {
    // Required methods
    fn purify(&self) -> &Self;
    fn split_two(&self) -> (&str, &str);
    fn fnmatch(&self, pattern: &str) -> bool;
}

Required Methods§

source

fn purify(&self) -> &Self

Remove comments and trim whitespace

source

fn split_two(&self) -> (&str, &str)

Like split_whitespace() but only produce 2 components

source

fn fnmatch(&self, pattern: &str) -> bool

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl StrUtils for str

source§

fn purify(&self) -> &Self

source§

fn split_two(&self) -> (&str, &str)

source§

fn fnmatch(&self, pat: &str) -> bool

Implementors§