(self, count: usize)
| 255 | /// } |
| 256 | #[allow(clippy::should_implement_trait)] |
| 257 | pub unsafe fn sub(self, count: usize) -> Self |
| 258 | where |
| 259 | T: Sized, |
| 260 | { |
| 261 | self.offset((count as isize).wrapping_neg()) |
| 262 | } |
| 263 | |
| 264 | /// Calculates the offset from a pointer using wrapping arithmetic. |
| 265 | /// (convenience for `.wrapping_offset(count as isize)`) |
no test coverage detected