原文地址函式引數過載Rust 不支援函式引數過載, 但是我們可以使用內建的trait ... 可以接收常用字串型別以及 Box<str> , Rc<String> , Cow<str> 等.
確定! 回上一頁