Calculates the offset from a pointer using wrapping arithmetic. (convenience for `.wrapping_offset(count as isize)`) `count` is in units of T; e.g. a `count` of 3 represents a pointer offset of `3 * size_of:: ()` bytes. # Safety The resulting pointer does not need to be in bounds, but it is potentially hazardous to dereference. Always use `.add(count)` instead when possible, because `add` al
(self, count: usize)
| 287 | /// } |
| 288 | /// ``` |
| 289 | pub fn wrapping_add(self, count: usize) -> Self |
| 290 | where |
| 291 | T: Sized, |
| 292 | { |
| 293 | self.wrapping_offset(count as isize) |
| 294 | } |
| 295 | |
| 296 | /// Calculates the offset from a pointer using wrapping arithmetic. |
| 297 | /// (convenience for `.wrapping_offset((count as isize).wrapping_sub())`) |
no test coverage detected