Looks up an exported [`Func`] value by name. Returns `None` if there was no export named `name`, or if there was but it wasn't a function. # Panics Panics if `store` does not own this instance.
(&self, store: impl AsContextMut, name: &str)
| 492 | /// |
| 493 | /// Panics if `store` does not own this instance. |
| 494 | pub fn get_func(&self, store: impl AsContextMut, name: &str) -> Option<Func> { |
| 495 | self.get_export(store, name)?.into_func() |
| 496 | } |
| 497 | |
| 498 | /// Looks up an exported [`Func`] value by name and with its type. |
| 499 | /// |