(&self, idx: FunctionHandleIndex)
| 53 | } |
| 54 | |
| 55 | fn function_handle_at(&self, idx: FunctionHandleIndex) -> &FunctionHandle { |
| 56 | let handle = &self.as_module().function_handles[idx.into_index()]; |
| 57 | debug_assert!(handle.parameters.into_index() < self.as_module().signatures.len()); // invariant |
| 58 | debug_assert!(handle.return_.into_index() < self.as_module().signatures.len()); // invariant |
| 59 | handle |
| 60 | } |
| 61 | |
| 62 | fn field_handle_at(&self, idx: FieldHandleIndex) -> &FieldHandle { |
| 63 | let handle = &self.as_module().field_handles[idx.into_index()]; |