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

Class Raw::FormatArgsExpr

INTERNAL: Do not use. A FormatArgsExpr. For example:

format_args!("no args");
format_args!("{} foo {:?}", 1, 2);
format_args!("{b} foo {a:?}", a=1, b=2);
let (x, y) = (1, 42);
format_args!("{x}, {y}");

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getArg

Gets the indexth argument of this format arguments expression (0-based).

getAttr

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

getNumberOfArgs

Gets the number of arguments of this format arguments expression.

getNumberOfAttrs

Gets the number of attrs of this format arguments expression.

getTemplate

Gets the template of this format arguments expression, if it exists.

toString