Lit in rustc_ast::token - Rust (original) (raw)
pub struct Lit {
pub kind: LitKind,
pub symbol: Symbol,
pub suffix: Option<Symbol>,
}
Expand description
A literal token.
Returns true
if this is semantically a float literal. This includes ones like 1f32
that have an Integer
kind but a float suffix.
Keep this in sync with Token::can_begin_literal_maybe_minus
andParser::eat_token_lit
(excluding unary negation).
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 12 bytes