pub enum ScalarValue {
None,
Null,
Bool(bool),
Identifier(String),
String(String),
Integer(i64),
Float(f64),
Complex(Complex64),
Date(NaiveDate),
DateTime(DateTime<FixedOffset>),
}
Expand description
This represents a scalar value corresponding to a token.
Variants§
None
This is the (absence of) value for punctuation tokens.
Null
This is the value for the “null” keyword.
Bool(bool)
This is the value for the “true” and “false” keywords.
Identifier(String)
This is the value for an identifier.
String(String)
This is the value for a string literal.
Integer(i64)
This is the value for an integer.
Float(f64)
This is the value for a floating-point number.
Complex(Complex64)
This is the value for a complex number.
Date(NaiveDate)
This is the value for a date.
DateTime(DateTime<FixedOffset>)
This is the value for a date/time.
Trait Implementations§
Source§impl Clone for ScalarValue
impl Clone for ScalarValue
Source§fn clone(&self) -> ScalarValue
fn clone(&self) -> ScalarValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ScalarValue
impl Debug for ScalarValue
Source§impl Display for ScalarValue
impl Display for ScalarValue
Source§impl PartialEq for ScalarValue
impl PartialEq for ScalarValue
impl StructuralPartialEq for ScalarValue
Auto Trait Implementations§
impl Freeze for ScalarValue
impl RefUnwindSafe for ScalarValue
impl Send for ScalarValue
impl Sync for ScalarValue
impl Unpin for ScalarValue
impl UnwindSafe for ScalarValue
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