(&self)
| 404 | } |
| 405 | |
| 406 | fn as_contiguous(&self) -> Option<BorrowedValue<'_, [u8]>> { |
| 407 | self.desc.is_contiguous().then(|| { |
| 408 | BorrowedValue::map(self.buffer.obj_bytes(), |x| { |
| 409 | &x[self.start..self.start + self.desc.len] |
| 410 | }) |
| 411 | }) |
| 412 | } |
| 413 | |
| 414 | fn _as_contiguous_mut(&self) -> Option<BorrowedValueMut<'_, [u8]>> { |
| 415 | self.desc.is_contiguous().then(|| { |
no test coverage detected