Enum nom_sql::Literal [−][src]
pub enum Literal { Null, Integer(i64), FixedPoint(Real), String(String), Blob(Vec<u8>), CurrentTime, CurrentDate, CurrentTimestamp, Placeholder, }
Variants
Null
Integer(i64)
FixedPoint(Real)
String(String)
Blob(Vec<u8>)
CurrentTime
CurrentDate
CurrentTimestamp
Placeholder
Trait Implementations
impl Clone for Literal
[src]
impl Clone for Literal
fn clone(&self) -> Literal
[src]
fn clone(&self) -> Literal
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Literal
[src]
impl Debug for Literal
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Literal
[src]
impl Eq for Literal
impl Hash for Literal
[src]
impl Hash for Literal
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for Literal
[src]
impl PartialEq for Literal
fn eq(&self, other: &Literal) -> bool
[src]
fn eq(&self, other: &Literal) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Literal) -> bool
[src]
fn ne(&self, other: &Literal) -> bool
This method tests for !=
.
impl From<i64> for Literal
[src]
impl From<i64> for Literal
impl From<String> for Literal
[src]
impl From<String> for Literal
impl<'a> From<&'a str> for Literal
[src]
impl<'a> From<&'a str> for Literal
impl ToString for Literal
[src]
impl ToString for Literal
impl From<Literal> for LiteralExpression
[src]
impl From<Literal> for LiteralExpression