(&self, length: usize)
| 92 | } |
| 93 | |
| 94 | pub fn as_slice<T>(&self, length: usize) -> &[T] { |
| 95 | unsafe{slice::from_raw_parts( |
| 96 | self.as_ptr::<T>(), |
| 97 | length)} |
| 98 | } |
| 99 | |
| 100 | pub fn as_mut_slice<T>(&mut self, length: usize) -> &mut [T] { |
| 101 | unsafe{slice::from_raw_parts_mut( |
no outgoing calls
no test coverage detected