println!("{:?}",hoge) と println!("{:#?}",hoge) の違いが分からん
-
-
-
std::fmt - Rust https://doc.rust-lang.org/stable/std/fmt/index.html#sign0 … > `#` - This flag is indicates that the "alternate" form of printing should be used. formatter 側からは alternate() で判別して出力を変える: std::fmt::Formatter - Rust https://doc.rust-lang.org/stable/std/fmt/struct.Formatter.html#method.alternate …
2 replies 1 retweet 2 likes -
顕著な例がserde_json::Valueで、alternateの有無でto_stringとto_string_prettyを切り替えている: https://docs.rs/serde_json/1.0.35/src/serde_json/value/mod.rs.html#215-251 …
1 reply 2 retweets 2 likes
s/to_string/to_writer/g
2:24 AM - 16 Jan 2019
0 replies
1 retweet
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.