Returns a `GuestPtr` for an array of `T`s using this pointer as the base.
(&self, elems: u32)
| 411 | /// Returns a `GuestPtr` for an array of `T`s using this pointer as the |
| 412 | /// base. |
| 413 | pub fn as_array(&self, elems: u32) -> GuestPtr<[T]> |
| 414 | where |
| 415 | T: GuestType + Pointee<Pointer = u32>, |
| 416 | { |
| 417 | GuestPtr::new((self.pointer, elems)) |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | impl<T> GuestPtr<[T]> { |