更普遍地,我们可以使用由 Clone trait 定义的方法。 // 不含资源的单元结构体; #[derive(Debug, Clone, Copy)]; struct Nil;; // 包含实现`Clone` ...
確定! 回上一頁