在 write! 上使用 ? 会像是这样:
write!
?
有了 ?,对一个 Vec 实现 fmt::Display 就很简单了:
Vec
fmt::Display
, ref, , struct, , 和 vec!
ref
struct
vec!
本文档使用 全库网 构建