Equivalent to [`Self::set_borrowed`] but takes a [`SliceImpl`] instead of a `&[T]`.
(&mut self, slice: SliceImpl<'borrowed, T>)
| 395 | |
| 396 | /// Equivalent to [`Self::set_borrowed`] but takes a [`SliceImpl`] instead of a `&[T]`. |
| 397 | pub fn set_borrowed_slice_impl(&mut self, slice: SliceImpl<'borrowed, T>) { |
| 398 | self.slice = slice; |
| 399 | } |
| 400 | |
| 401 | /// Allows putting contents into a cleared `&mut Vec<T>`. When `SetOwned` is dropped the |
| 402 | /// `CowSlice` will be updated to reference the new elements. |
no outgoing calls
no test coverage detected