[][src]Enum cfg_lib::config::ScalarValue

pub enum ScalarValue {
    None,
    Null,
    Bool(bool),
    Identifier(String),
    String(String),
    Integer(i64),
    Float(f64),
    Complex(Complex64),
    Date(NaiveDate),
    DateTime(DateTime<FixedOffset>),
}

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.

This is the value for a date/time.

Trait Implementations

impl Clone for ScalarValue[src]

impl Debug for ScalarValue[src]

impl Display for ScalarValue[src]

impl PartialEq<ScalarValue> for ScalarValue[src]

impl StructuralPartialEq for ScalarValue[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.