在Rust中, Clone 是一个指定 clone 方法的特性(和 clone_from )。一些特征,如 StrSlice 和 CloneableVector 指定a to_owned fn。
確定! 回上一頁