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

Member predicate Generated::Format::getWidthArgument

Gets the width argument of this format, if it exists.

For example width and 1 in:

let width = 6;
println!("{:width$}", PI);
println!("{:1$}", PI, width);
FormatArgument getWidthArgument()