Enum cpp_syn::LitKind
[−]
[src]
pub enum LitKind {
Str(String, StrStyle),
ByteStr(Vec<u8>, StrStyle),
Byte(u8),
Char(char),
Int(u64, IntTy),
Float(String, FloatTy),
Bool(bool),
}Variants
Str(String, StrStyle)A string literal ("foo")
ByteStr(Vec<u8>, StrStyle)A byte string (b"foo")
Byte(u8)A byte char (b'f')
Char(char)A character literal ('a')
Int(u64, IntTy)An integer literal (1)
Float(String, FloatTy)A float literal (1f64 or 1E10f64 or 1.0E10)
Bool(bool)A boolean literal
Trait Implementations
impl Debug for LitKind[src]
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
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 !=.