pub trait StringUtil {
// Required methods
fn is_hex(&self) -> bool;
fn like_escape(&self) -> String;
}Available on crate feature
utils only.Required Methods§
Sourcefn like_escape(&self) -> String
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".