(&self)
| 394 | } |
| 395 | |
| 396 | fn obj_bytes_mut(&self) -> BorrowedValueMut<'_, [u8]> { |
| 397 | if self.desc.is_contiguous() { |
| 398 | BorrowedValueMut::map(self.buffer.obj_bytes_mut(), |x| { |
| 399 | &mut x[self.start..self.start + self.desc.len] |
| 400 | }) |
| 401 | } else { |
| 402 | BorrowedValueMut::map(self.buffer.obj_bytes_mut(), |x| &mut x[self.start..]) |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | fn as_contiguous(&self) -> Option<BorrowedValue<'_, [u8]>> { |
| 407 | self.desc.is_contiguous().then(|| { |
no test coverage detected