在Rust 1.26 版本中,引入了一种新的trait 使用方式,即:impl trait, ... if i > 10 { return Cat; } Dog } // | fn return_greeting_impl(i: i32) ...
確定! 回上一頁