Added access to the raw Wasm instance

This commit is contained in:
Syrus Akbary
2021-12-14 12:25:52 +01:00
parent 60c58af7b4
commit dcb2490d91

View File

@@ -173,6 +173,12 @@ impl Instance {
pub fn store(&self) -> &Store {
self.module.store()
}
/// Returns the inner WebAssembly Instance
#[doc(hidden)]
pub fn raw(&self) -> &WebAssembly::Instance {
&self.instance
}
}
impl fmt::Debug for Instance {