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
Str(String)
ByteStr(Vec<u8>)
Byte(u8)
Int(u64)
Float(String)
Bool(bool)
Char(char)
Methods
impl FromLiteral
[src]
fn is_str(&self) -> bool
fn is_bytestr(&self) -> bool
fn is_byte(&self) -> bool
fn is_int(&self) -> bool
fn is_float(&self) -> bool
fn is_bool(&self) -> bool
fn is_char(&self) -> bool
Trait Implementations
impl Clone for FromLiteral
[src]
fn clone(&self) -> FromLiteral
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for FromLiteral
[src]
impl PartialEq for FromLiteral
[src]
fn eq(&self, __arg_0: &FromLiteral) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FromLiteral) -> bool
This method tests for !=
.
impl Eq for FromLiteral
[src]
impl From<Lit> for FromLiteral
[src]
fn from(x: Lit) -> FromLiteral
Performs the conversion.
impl<'a> From<&'a Lit> for FromLiteral
[src]
fn from(x: &'a Lit) -> FromLiteral
Performs the conversion.