Function netidx::utils::escape[][src]

pub fn escape<'a, 'b, T>(s: &'a T, esc: char, spec: &'b [char]) -> Cow<'a, str> where
    'a: 'b,
    T: AsRef<str> + ?Sized

escape the specified string using the specified escape character and a slice of special characters that need escaping.