Instead of doing pattern matching directly on the fields, you can do it on a returned tupple: #[derive(Clone, Copy)] pub struct OrderedPair ...
確定! 回上一頁