Enum cpp_syn::LitKind [] [src]

pub enum LitKind {
    Str(StringStrStyle),
    ByteStr(Vec<u8>, StrStyle),
    Byte(u8),
    Char(char),
    Int(u64IntTy),
    Float(StringFloatTy),
    Bool(bool),
}

Variants

A string literal ("foo")

A byte string (b"foo")

A byte char (b'f')

A character literal ('a')

An integer literal (1)

A float literal (1f64 or 1E10f64 or 1.0E10)

A boolean literal

Trait Implementations

impl Debug for LitKind
[src]

Formats the value using the given formatter.

impl Clone for LitKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for LitKind
[src]

impl PartialEq for LitKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for LitKind
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more