(self)
| 128 | } |
| 129 | |
| 130 | pub fn get_as_mut(self) -> AxResult<&'static mut T> { |
| 131 | check_region(self.address(), Layout::new::<T>(), Self::ACCESS_FLAGS)?; |
| 132 | Ok(unsafe { &mut *self.0 }) |
| 133 | } |
| 134 | |
| 135 | pub fn get_as_mut_slice(self, len: usize) -> AxResult<&'static mut [T]> { |
| 136 | check_region( |
no test coverage detected