Rust 內建了很多的trait ,只要實作了這些trait 就能讓Rust 知道你的型態能提供哪些 ... use std::{ops::Deref, fmt}; #[derive(Copy, Clone)] struct Num(i32); impl ...
確定! 回上一頁