Skip to main content

quote_ident

Function quote_ident 

Source
pub fn quote_ident(value: &str, dialect: &impl Dialect) -> String
Expand description

Wraps value in the dialect’s identifier quote character.

Derives the quote character from Dialect::identifier_quote_style, falling back to " (ANSI double-quote) when the dialect returns None. Escapes internal occurrences of the quote character by doubling them.