I am very sorry to ask such a simple question ... A day ago, I began to study Rust and tried the println! method println! .
fn main() { println!("Hello {}!", "world"); } -> Hello world!
And then I found other format styles: {}, {:}, {:?}, {?} , ...
I know that {} String instead, but I don't understand a different formatting style. How do these styles differ from each other? I think {:?} Is an array or a vector. Is it correct?
Please explain this formatting style with a sample code :(
source share