CodeQL library for Rust
codeql/rust-all 0.2.13 (changelog, source)
Search

Class Raw::LiteralExpr

INTERNAL: Do not use. A literal expression. For example:

42;
42.0;
"Hello, world!";
b"Hello, world!";
'x';
b'x';
r"Hello, world!";
true;

Import path

import codeql.rust.elements.internal.generated.Raw

Direct supertypes

Indirect supertypes

Predicates

getAttr

Gets the indexth attr of this literal expression (0-based).

getNumberOfAttrs

Gets the number of attrs of this literal expression.

getTextValue

Gets the text value of this literal expression, if it exists.

toString