Enum syntax::parse::token::Lit [−][src]
pub enum Lit { Byte(Name), Char(Name), Integer(Name), Float(Name), Str_(Name), StrRaw(Name, u16), ByteStr(Name), ByteStrRaw(Name, u16), }
Variants
Byte(Name)
Char(Name)
Integer(Name)
Float(Name)
Str_(Name)
StrRaw(Name, u16)
ByteStr(Name)
ByteStrRaw(Name, u16)
Trait Implementations
impl Clone for Lit
[src]
impl Clone for Lit
fn clone(&self) -> Lit
[src]
fn clone(&self) -> Lit
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Encodable for Lit
[src]
impl Encodable for Lit
impl Decodable for Lit
[src]
impl Decodable for Lit
impl PartialEq for Lit
[src]
impl PartialEq for Lit
fn eq(&self, other: &Lit) -> bool
[src]
fn eq(&self, other: &Lit) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Lit) -> bool
[src]
fn ne(&self, other: &Lit) -> bool
This method tests for !=
.
impl Eq for Lit
[src]
impl Eq for Lit
impl Hash for Lit
[src]
impl Hash for Lit
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Lit
[src]
impl Debug for Lit
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Lit
[src]
impl Copy for Lit