Equivalent to `self.set_owned().extend_from_slice(slice)` but without copying.
(&mut self, slice: &'borrowed [T])
| 390 | |
| 391 | /// Equivalent to `self.set_owned().extend_from_slice(slice)` but without copying. |
| 392 | pub fn set_borrowed(&mut self, slice: &'borrowed [T]) { |
| 393 | self.slice = slice.into(); |
| 394 | } |
| 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>) { |
no outgoing calls
no test coverage detected