pub trait EscapeBuilder {
// Provided methods
fn needs_escape(&self, s: &str) -> bool { ... }
fn escape_string(&self, string: &str) -> String { ... }
fn write_escaped(&self, buffer: &mut impl Write, string: &str) { ... }
fn unescape_string(&self, string: &str) -> String { ... }
}Provided Methods§
Sourcefn needs_escape(&self, s: &str) -> bool
fn needs_escape(&self, s: &str) -> bool
Return if string literal needs to be escaped
Sourcefn escape_string(&self, string: &str) -> String
fn escape_string(&self, string: &str) -> String
Escape a SQL string literal
fn write_escaped(&self, buffer: &mut impl Write, string: &str)
Sourcefn unescape_string(&self, string: &str) -> String
fn unescape_string(&self, string: &str) -> String
Unescape a SQL string literal
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.