再來,如果我們加了某個沒有同時實作 Hash 、 PartialEq 和 Eq 特性的欄位,這個 Person 結構體就沒有辦法被編譯了。 例如:. #[derive(Hash, PartialEq, ...
確定! 回上一頁