pub enum LiteralKind {
Int {
base: Base,
empty_int: bool,
},
Float {
base: Base,
empty_exponent: bool,
},
Str {
terminated: bool,
},
ByteStr {
terminated: bool,
},
BitStr {
terminated: bool,
},
DollarQuotedString {
terminated: bool,
},
UnicodeEscStr {
terminated: bool,
},
EscStr {
terminated: bool,
},
}Variants§
Int
Integer Numeric, e.g., 42
see: https://www.postgresql.org/docs/16/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS-NUMERIC
Float
Float Numeric, e.g., 1.925e-3
see: https://www.postgresql.org/docs/16/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS-NUMERIC
Str
String, e.g., 'foo'
see: https://www.postgresql.org/docs/16/sql-syntax-lexical.html#SQL-SYNTAX-STRINGS
ByteStr
Hexidecimal Bit String, e.g., X'1FF'
see: https://www.postgresql.org/docs/16/sql-syntax-lexical.html#SQL-SYNTAX-BIT-STRINGS
BitStr
Bit String, e.g., B'1001'
see: https://www.postgresql.org/docs/16/sql-syntax-lexical.html#SQL-SYNTAX-BIT-STRINGS
DollarQuotedString
Dollar Quoted String, e.g., $$Dianne's horse$$
see: https://www.postgresql.org/docs/16/sql-syntax-lexical.html#SQL-SYNTAX-DOLLAR-QUOTING
UnicodeEscStr
Unicode Escape String, e.g., U&'d\0061t\+000061'
see: https://www.postgresql.org/docs/16/sql-syntax-lexical.html#SQL-SYNTAX-STRINGS-UESCAPE
EscStr
Escape String, e.g, E'foo'
see: https://www.postgresql.org/docs/16/sql-syntax-lexical.html
Trait Implementations§
Source§impl Clone for LiteralKind
impl Clone for LiteralKind
Source§fn clone(&self) -> LiteralKind
fn clone(&self) -> LiteralKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more