Module lit
Source - parsing
- LitBool
- A boolean literal:
true or false. - LitByte
- A byte literal:
b'f'. - LitByteStr
- A byte string literal:
b"foo". - LitChar
- A character literal:
'a'. - LitFloat
- A floating point literal:
1f64 or 1.0e10f64. - LitInt
- An integer literal:
1 or 1u16. - LitStr
- A UTF-8 string literal:
"foo". - LitVerbatim
- A raw token literal not interpreted by Syn, possibly because it
represents an integer larger than 64 bits.
- FloatSuffix
- The suffix on a floating point literal if any, like the
f32 in
1.0f32. - IntSuffix
- The suffix on an integer literal if any, like the
u8 in 127u8. - Lit
- A Rust literal such as a string or integer or boolean.
- StrStyle
- The style of a string literal, either plain quoted or a raw string like
r##"data"##.