我有这样的想法: macro_rules! mymatch { ($obj:ident, ($matcher:tt => $result:tt),*) => { match $obj { $matcher }, } } mymatch!
確定! 回上一頁