Renamed get_native_function to get_typed_function, marked former as deprecated.

This commit is contained in:
Manos Pitsidianakis
2022-06-19 12:07:39 +03:00
parent decd32fad3
commit 168e330260
20 changed files with 159 additions and 136 deletions

View File

@@ -170,7 +170,7 @@
//! # fn exports_example(instance: &Instance) -> anyhow::Result<()> {
//! let memory = instance.exports.get_memory("memory")?;
//! let memory: &Memory = instance.exports.get("some_other_memory")?;
//! let add: TypedFunction<(i32, i32), i32> = instance.exports.get_native_function("add")?;
//! let add: TypedFunction<(i32, i32), i32> = instance.exports.get_typed_function("add")?;
//! let result = add.call(5, 37)?;
//! assert_eq!(result, 42);
//! # Ok(())