fmt::Debug 这个 trait 使这项工作变得相当简单。所有类型都能推导( derive ,即自动创建) fmt::Debug 的实现。但是 fmt::Display 需要手动实现。
確定! 回上一頁