pub enum Literal<'bump> {
Numeric(&'bump str),
String(&'bump str),
Blob(&'bump str),
Keyword(&'bump str),
Null,
CurrentDate,
CurrentTime,
CurrentTimestamp,
}Expand description
SQL literal
Variants§
Numeric(&'bump str)
Number
String(&'bump str)
String
Blob(&'bump str)
BLOB
Keyword(&'bump str)
Keyword
Null
NULL
CurrentDate
CURRENT_DATE
CurrentTime
CURRENT_TIME
CurrentTimestamp
CURRENT_TIMESTAMP
Implementations§
Trait Implementations§
impl<'bump> Eq for Literal<'bump>
Source§impl<'bump> PartialEq for Literal<'bump>
impl<'bump> PartialEq for Literal<'bump>
impl<'bump> StructuralPartialEq for Literal<'bump>
Auto Trait Implementations§
impl<'bump> Freeze for Literal<'bump>
impl<'bump> RefUnwindSafe for Literal<'bump>
impl<'bump> Send for Literal<'bump>
impl<'bump> Sync for Literal<'bump>
impl<'bump> Unpin for Literal<'bump>
impl<'bump> UnsafeUnpin for Literal<'bump>
impl<'bump> UnwindSafe for Literal<'bump>
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.