wasmtime: Document support for {extern,func}ref in Func::wrap
This commit is contained in:
@@ -342,7 +342,7 @@ impl Func {
|
||||
/// be inferred. Rust types will map to WebAssembly types as follows:
|
||||
///
|
||||
/// | Rust Argument Type | WebAssembly Type |
|
||||
/// |--------------------|------------------|
|
||||
/// |---------------------|------------------|
|
||||
/// | `i32` | `i32` |
|
||||
/// | `u32` | `i32` |
|
||||
/// | `i64` | `i64` |
|
||||
@@ -350,7 +350,8 @@ impl Func {
|
||||
/// | `f32` | `f32` |
|
||||
/// | `f64` | `f64` |
|
||||
/// | (not supported) | `v128` |
|
||||
/// | (not supported) | `externref` |
|
||||
/// | `Option<Func>` | `funcref` |
|
||||
/// | `Option<ExternRef>` | `externref` |
|
||||
///
|
||||
/// Any of the Rust types can be returned from the closure as well, in
|
||||
/// addition to some extra types
|
||||
|
||||
Reference in New Issue
Block a user