Enum macrohelper::FromLiteral [] [src]

pub enum FromLiteral {
    Str(String),
    ByteStr(Vec<u8>),
    Byte(u8),
    Int(u64),
    Float(String),
    Bool(bool),
    Char(char),
}

Derive traits for tests

Even tho syn has PartialEq and Eq derived for most types I'm getting massive

Variants

Methods

impl FromLiteral
[src]

Trait Implementations

impl Clone for FromLiteral
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for FromLiteral
[src]

Formats the value using the given formatter.

impl PartialEq for FromLiteral
[src]

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

This method tests for !=.

impl Eq for FromLiteral
[src]

impl From<Lit> for FromLiteral
[src]

Performs the conversion.

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

Performs the conversion.