pub struct LexOptions<'cfg> {
pub body_delimiters: &'cfg [BodyDelimiter],
pub dialect: Dialect,
}Fields§
§body_delimiters: &'cfg [BodyDelimiter]§dialect: DialectThe SQL dialect being lexed. Drives quoting and special-token behavior ($$/$n, @stage)
so the same lexer can serve multiple dialects. Defaults to Dialect::Snowflake.
Implementations§
Source§impl<'cfg> LexOptions<'cfg>
impl<'cfg> LexOptions<'cfg>
Sourcepub fn with_dialect(self, dialect: Dialect) -> Self
pub fn with_dialect(self, dialect: Dialect) -> Self
LexOptions for dialect with the default body delimiters, returning the updated options.
Trait Implementations§
Source§impl<'cfg> Clone for LexOptions<'cfg>
impl<'cfg> Clone for LexOptions<'cfg>
Source§fn clone(&self) -> LexOptions<'cfg>
fn clone(&self) -> LexOptions<'cfg>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'cfg> Copy for LexOptions<'cfg>
Source§impl<'cfg> Debug for LexOptions<'cfg>
impl<'cfg> Debug for LexOptions<'cfg>
Auto Trait Implementations§
impl<'cfg> Freeze for LexOptions<'cfg>
impl<'cfg> RefUnwindSafe for LexOptions<'cfg>
impl<'cfg> Send for LexOptions<'cfg>
impl<'cfg> Sync for LexOptions<'cfg>
impl<'cfg> Unpin for LexOptions<'cfg>
impl<'cfg> UnsafeUnpin for LexOptions<'cfg>
impl<'cfg> UnwindSafe for LexOptions<'cfg>
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