在本书接下来的部分,你将看到Rust 提供了一个叫做“导出(derive)”的机制来轻松的实现trait。例如, #[derive(Debug)] struct Point { x: i32, y: i32, }.
確定! 回上一頁