pub struct LexerConfig {
pub double_colon: bool,
pub bracket_identifiers: bool,
pub backtick_identifiers: bool,
pub double_at: bool,
pub dollar_quoting: bool,
}Expand description
Dialect-specific lexer configuration.
Fields§
§double_colon: boolEnable :: as cast operator (PostgreSQL).
bracket_identifiers: boolEnable [identifier] quoting (SQL Server).
backtick_identifiers: boolEnable backtick identifier quoting (MySQL).
double_at: boolEnable @@variable (SQL Server).
dollar_quoting: boolEnable dollar-quoted strings $$...$$ (PostgreSQL).
Implementations§
Trait Implementations§
Source§impl Clone for LexerConfig
impl Clone for LexerConfig
Source§fn clone(&self) -> LexerConfig
fn clone(&self) -> LexerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LexerConfig
impl Debug for LexerConfig
Source§impl Default for LexerConfig
impl Default for LexerConfig
Source§fn default() -> LexerConfig
fn default() -> LexerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LexerConfig
impl RefUnwindSafe for LexerConfig
impl Send for LexerConfig
impl Sync for LexerConfig
impl Unpin for LexerConfig
impl UnsafeUnpin for LexerConfig
impl UnwindSafe for LexerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more