Member predicate Generated::Format::getPrecisionArgument
Gets the precision argument of this format, if it exists.
For example prec
and 1
in:
let prec = 6;
println!("{:.prec$}", PI);
println!("{:.1$}", PI, prec);
Gets the precision argument of this format, if it exists.
For example prec
and 1
in:
let prec = 6;
println!("{:.prec$}", PI);
println!("{:.1$}", PI, prec);