Skip to main content

StringUtil

Trait StringUtil 

Source
pub trait StringUtil {
    // Required methods
    fn is_hex(&self) -> bool;
    fn like_escape(&self) -> String;
}
Available on crate feature utils only.

Required Methods§

Source

fn is_hex(&self) -> bool

Check whether given s is a hex string.

Source

fn like_escape(&self) -> String

Escape like SQL in s. Replace \ to \\, % to \% and _ to \_.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<S> StringUtil for S
where S: AsRef<str>,