(&'a self)
| 336 | #[allow(clippy::needless_lifetimes)] |
| 337 | #[inline] |
| 338 | pub fn shared_ref<'a>(&'a self) -> &'a SlimSlice<'a, T> { |
| 339 | // SAFETY: The reference lives as long as `self`. |
| 340 | // By virtue of `repr(transparent)` we're also allowed these reference casts. |
| 341 | unsafe { mem::transmute(self) } |
| 342 | } |
| 343 | |
| 344 | /// Returns a limited mutable slice to this boxed slice. |
| 345 | #[allow(clippy::needless_lifetimes)] |
no outgoing calls