pub enum LiteralKind {
Int {
base: Base,
empty_int: bool,
trailing_junk_start: u32,
},
Numeric {
base: Base,
empty_exponent_start: Option<u32>,
trailing_junk_start: u32,
},
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
Numeric
Numeric literal with a decimal point or exponent, 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LiteralKind
impl Debug for LiteralKind
Source§impl Ord for LiteralKind
impl Ord for LiteralKind
Source§fn cmp(&self, other: &LiteralKind) -> Ordering
fn cmp(&self, other: &LiteralKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for LiteralKind
impl PartialEq for LiteralKind
Source§fn eq(&self, other: &LiteralKind) -> bool
fn eq(&self, other: &LiteralKind) -> bool
self and other values to be equal, and is used by ==.