(&'me mut self)
| 380 | #[must_use] |
| 381 | #[inline(always)] |
| 382 | pub fn mut_slice<'me>(&'me mut self) -> &'me mut SliceImpl<'me, T> |
| 383 | where |
| 384 | 'borrowed: 'me, |
| 385 | { |
| 386 | // Safety: 'me is min of 'borrowed and &'me self because of `where 'borrowed: 'me`. |
| 387 | let slice: &'me mut SliceImpl<'me, T> = unsafe { std::mem::transmute(&mut self.slice) }; |
| 388 | slice |
| 389 | } |
| 390 | |
| 391 | /// Equivalent to `self.set_owned().extend_from_slice(slice)` but without copying. |
| 392 | pub fn set_borrowed(&mut self, slice: &'borrowed [T]) { |
no outgoing calls
no test coverage detected