pub enum Literal<'a> {
Quoted(&'a str),
Number(&'a str),
}Expand description
A literal as written before ::, its quotes and escapes already decoded.
Variants§
Quoted(&'a str)
A string constant, '…', E'…' or $$…$$, whose type PostgreSQL leaves unknown until
the cast reads it with the target’s input function.
Number(&'a str)
A numeric constant as PostgreSQL 18’s lexer reads it, 42, 0x2A, 1_000, 2.5, .5
or 1e2, with a leading - for a negation the parser folds into the constant, as in
(-2.5)::int.
Trait Implementations§
impl<'a> Copy for Literal<'a>
impl<'a> Eq for Literal<'a>
impl<'a> StructuralPartialEq for Literal<'a>
Auto Trait Implementations§
impl<'a> Forget for Literal<'a>
impl<'a> Freeze for Literal<'a>
impl<'a> Move for Literal<'a>
impl<'a> RefUnwindSafe for Literal<'a>
impl<'a> Send for Literal<'a>
impl<'a> Sync for Literal<'a>
impl<'a> Unpin for Literal<'a>
impl<'a> UnsafeUnpin for Literal<'a>
impl<'a> UnwindSafe for Literal<'a>
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