debug
Read the Rust book
That's what I am reading.
What does the {:?} do? I haven't seen it, normally it's {} inside println!()
https://doc.rust-lang.org/rust-by-example/hello/print/print_debug.html
to display detailed info mostly useful in more complex structs (not, say, integers like in the example)
So useless when printing primitives, useful for #[derive(Debug)] structs? and other custom types.
Обсуждают сегодня