Enum rtlola_parser::ast::LitKind[][src]

pub enum LitKind {
    Str(String),
    RawStr(String),
    Numeric(StringOption<String>),
    Bool(bool),
}

The Ast representation of literals

Variants

Str(String)

A string literal ("foo")

RawStr(String)

A raw string literal (r#" x " a \ff "#)

Numeric(StringOption<String>)

A numeric value with optional postfix part (42, 1.3, 1Hz, 100sec) Stores as a string to have lossless representation

Bool(bool)

A boolean literal (true)

Trait Implementations

impl Clone for LitKind[src]

impl Debug for LitKind[src]

Auto Trait Implementations

impl RefUnwindSafe for LitKind

impl Send for LitKind

impl Sync for LitKind

impl Unpin for LitKind

impl UnwindSafe for LitKind

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> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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.