Enum syntex_syntax::ast::LitKind
[−]
[src]
pub enum LitKind { Str(InternedString, StrStyle), ByteStr(Rc<Vec<u8>>), Byte(u8), Char(char), Int(u64, LitIntType), Float(InternedString, FloatTy), FloatUnsuffixed(InternedString), Bool(bool), }
Variants
Str | A string literal ( | |
ByteStr | A byte string ( | |
Byte | A byte char ( | |
Char | A character literal ( | |
Int | An integer literal ( | |
Float | A float literal ( | |
FloatUnsuffixed | A float literal without a suffix ( | |
Bool | A boolean literal |
Methods
impl LitKind
[src]
Trait Implementations
Derived Implementations
impl Debug for LitKind
[src]
impl Hash for LitKind
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Decodable for LitKind
[src]
impl Encodable for LitKind
[src]
impl Eq for LitKind
[src]
impl PartialEq for LitKind
[src]
fn eq(&self, __arg_0: &LitKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LitKind) -> bool
This method tests for !=
.
impl Clone for LitKind
[src]
fn clone(&self) -> LitKind
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