Implement the Copy trait can use derive notation in Rust. #[derive(Clone, Copy)] struct Foo { number: i32 }. Notice that Clone is required.
確定! 回上一頁