KeywordsEscaper

Trait KeywordsEscaper 

Source
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§

Source

fn gen_upsert_name(&self, word: &str) -> String

Source

fn is_keyword(&self, word: &str) -> bool

Source

fn escape_word(&self, word: &str) -> String

Provided Methods§

Source

fn escape<'a>(&self, word: &'a str) -> Cow<'a, str>

Implementors§