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§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§impl PartialEq for LiteralKind
impl PartialEq for LiteralKind
Source§impl PartialOrd for LiteralKind
impl PartialOrd for LiteralKind
impl Copy for LiteralKind
impl Eq for LiteralKind
impl StructuralPartialEq for LiteralKind
Auto Trait Implementations§
impl Freeze for LiteralKind
impl RefUnwindSafe for LiteralKind
impl Send for LiteralKind
impl Sync for LiteralKind
impl Unpin for LiteralKind
impl UnwindSafe for LiteralKind
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)