pub trait KeywordsEscaper {
// Required methods
fn gen_upsert_name(&self, word: &str) -> String;
fn is_keyword(&self, word: &str) -> bool;
fn escape_word(&self, word: &str) -> String;
// Provided method
fn escape<'a>(&self, word: &'a str) -> Cow<'a, str> { ... }
}Required Methods§
fn gen_upsert_name(&self, word: &str) -> String
fn is_keyword(&self, word: &str) -> bool
fn escape_word(&self, word: &str) -> String
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".