pub enum IdentifierQuote {
Symmetric(char),
Asymmetric {
open: char,
close: char,
},
}Expand description
One accepted identifier-quoting delimiter style.
SQL identifier quotes escape an embedded close delimiter by doubling it
("a""b", [a]]b], and the backtick analogue), so the escape rule is implied by the kind —
there is no separate escape character. A dialect accepts a set of these
(FeatureSet::identifier_quotes); the tokenizer emits a single QuotedIdent
token spanning the delimiters, and stripping/unescaping into an Ident is a
later stage that reads the style back from the span’s opening byte.
Variants§
Symmetric(char)
Open and close are the same delimiter (", `).
Asymmetric
Distinct open/close (T-SQL [a]); only the close needs doubling to escape.
Implementations§
Trait Implementations§
Source§impl Clone for IdentifierQuote
impl Clone for IdentifierQuote
Source§fn clone(&self) -> IdentifierQuote
fn clone(&self) -> IdentifierQuote
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 Copy for IdentifierQuote
Source§impl Debug for IdentifierQuote
impl Debug for IdentifierQuote
impl Eq for IdentifierQuote
Source§impl PartialEq for IdentifierQuote
impl PartialEq for IdentifierQuote
impl StructuralPartialEq for IdentifierQuote
Auto Trait Implementations§
impl Freeze for IdentifierQuote
impl RefUnwindSafe for IdentifierQuote
impl Send for IdentifierQuote
impl Sync for IdentifierQuote
impl Unpin for IdentifierQuote
impl UnsafeUnpin for IdentifierQuote
impl UnwindSafe for IdentifierQuote
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