wasmtime: Document support for {extern,func}ref in Func::wrap

This commit is contained in:
Nick Fitzgerald
2020-07-07 13:52:14 -07:00
parent 392bbadac7
commit 62655cdbe7

View File

@@ -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