在Rust 中,你始终可以能够通过derive属性来自动实现一些特性:. #![allow(unused)] fn main() { #[derive(Debug)] struct Pet { name: String, } }.
確定! 回上一頁