Struct cpp_syn::Lit [] [src]

pub struct Lit {
    pub node: LitKind,
    pub span: Span,
}

Literal kind.

E.g. "foo", 42, 12.34 or bool

Fields

Trait Implementations

impl ToTokens for Lit
[src]

Write self to the given Tokens. Read more

impl Debug for Lit
[src]

Formats the value using the given formatter.

impl Clone for Lit
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Lit
[src]

impl PartialEq for Lit
[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 Lit
[src]

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

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

impl<T: Into<Lit>> From<Spanned<T>> for Lit
[src]

Performs the conversion.

impl From<String> for Lit
[src]

Performs the conversion.

impl<'a> From<&'a str> for Lit
[src]

Performs the conversion.

impl From<Vec<u8>> for Lit
[src]

Performs the conversion.

impl<'a> From<&'a [u8]> for Lit
[src]

Performs the conversion.

impl From<char> for Lit
[src]

Performs the conversion.

impl From<bool> for Lit
[src]

Performs the conversion.

impl From<isize> for Lit
[src]

Performs the conversion.

impl From<i8> for Lit
[src]

Performs the conversion.

impl From<i16> for Lit
[src]

Performs the conversion.

impl From<i32> for Lit
[src]

Performs the conversion.

impl From<i64> for Lit
[src]

Performs the conversion.

impl From<usize> for Lit
[src]

Performs the conversion.

impl From<u8> for Lit
[src]

Performs the conversion.

impl From<u16> for Lit
[src]

Performs the conversion.

impl From<u32> for Lit
[src]

Performs the conversion.

impl From<u64> for Lit
[src]

Performs the conversion.

impl From<f32> for Lit
[src]

Performs the conversion.

impl From<f64> for Lit
[src]

Performs the conversion.