在Rust中, Clone 是一个特征,它指定 clone 方法(和 clone_from )。某些特征(例如 StrSlice 和 CloneableVector )指定了 to_owned fn。为什么实现同时需要两者?
確定! 回上一頁