[][src]Enum absolution::LitKind

pub enum LitKind {
    Str(Box<str>),
    ByteStr(Vec<u8>),
    Byte(u8),
    Char(char),
    Int(LitInt),
    Float(LitFloat),
}

The kind of literal

Booleans are tokenized as identifiers

Variants

Str(Box<str>)

A string ("foo")

ByteStr(Vec<u8>)

A byte string (b"foo")

Byte(u8)

A byte literal (b'a')

Char(char)

A character literal ('a')

Int(LitInt)

An integer (5)

Float(LitFloat)

A float (3.4)

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> 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.