Answers for "rust string interpolation"

0

rust string interpolation

let (apples, bananas) = (4, 3);
// println! captures the identifiers when formatting: the string itself isn't interpolated by Rust.
println!("There are {apples} apples and {bananas} bananas.");
Posted by: Guest on March-07-2022

Browse Popular Code Answers by Language