Skip to main content

Module literal

Module literal 

Source
Available on crate feature ast-models only.
Expand description

AST node models representing literal values in source code.

Structs§

BooleanLiteral
A boolean literal from source.
CharLiteral
A character literal from source, such as 'a' or '\u{1F600}'.
FloatLiteral
A floating point literal from source, such as 1.5 or 2e-3. Like IntegerLiterals, these are never negative.
FormatStringLiteral
A format string literal from source, such as `hello {name}`.
IntegerLiteral
An integer literal from source. This only contains unsigned integers as writing negative numbers is considered to be a combination of an integer literal with a unary negation.
StringLiteral
A string literal from source, such as "hello\n".

Enums§

Literal
Any literal value in source code.