Rust 中对应这种思想的是智能指针 Cow<T> ,定义如下:. pub enum Cow<'a, B> where B: 'a + ToOwned + 'a + ?Sized, { Borrowed(&'a B), ...
確定! 回上一頁