(&self)
| 870 | |
| 871 | #[inline] |
| 872 | pub fn as_slice(&self) -> &[T] { |
| 873 | // SAFETY: nested arrays are contiguous and contain exactly ROWS * COLS elements. |
| 874 | unsafe { std::slice::from_raw_parts(self.0.as_ptr().cast(), ROWS * COLS) } |
| 875 | } |
| 876 | |
| 877 | #[inline] |
| 878 | pub fn as_mut_slice(&mut self) -> &mut [T] { |
no outgoing calls