to_owned generalizes clone; this generalizes clone_from. Use to_owned to give it a default impl. Customize the impl for [T], str, and T:Clone. Use it in Cow::clone_from to reuse resources when cloning Owned into Owned. |
||
|---|---|---|
| .. | ||
| benches | ||
| btree | ||
| tests | ||
| binary_heap.rs | ||
| borrow.rs | ||
| Cargo.toml | ||
| enum_set.rs | ||
| fmt.rs | ||
| lib.rs | ||
| linked_list.rs | ||
| macros.rs | ||
| range.rs | ||
| slice.rs | ||
| str.rs | ||
| string.rs | ||
| vec.rs | ||
| vec_deque.rs | ||