(&mut self, engine: &Engine)
| 25 | |
| 26 | impl LazyFuncType { |
| 27 | pub(crate) fn force(&mut self, engine: &Engine) -> FuncType { |
| 28 | match self { |
| 29 | LazyFuncType::FuncType(ty) => ty.clone(), |
| 30 | LazyFuncType::Lazy { params, results } => { |
| 31 | let params = mem::take(params); |
| 32 | let results = mem::take(results); |
| 33 | let ty = FuncType::new(engine, params, results); |
| 34 | *self = LazyFuncType::FuncType(ty.clone()); |
| 35 | ty |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | fn params(&self) -> impl ExactSizeIterator<Item = ValType> + '_ { |
| 41 | match self { |