mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-29 13:06:06 +03:00
guide: Add imported and exported types to "supported types" reference
This commit is contained in:
parent
536bf5e0d7
commit
93b3216014
@ -4,6 +4,8 @@ The table below provides an overview of all the types that wasm-bindgen can send
|
|||||||
|
|
||||||
| Type | `T` parameter | `&T` parameter | `&mut T` parameter | `T` return value | `Option<T>` parameter | `Option<T>` return value |
|
| Type | `T` parameter | `&T` parameter | `&mut T` parameter | `T` return value | `Option<T>` parameter | `Option<T>` return value |
|
||||||
|:---:|:---:|:---:|:---:|:---:|:---:|
|
|:---:|:---:|:---:|:---:|:---:|:---:|
|
||||||
|
| Imported `extern Whatever;` JavaScript Types | Yes | Yes | Yes | Yes | Yes | Yes |
|
||||||
|
| Exported `struct Whatever` Rust Types | Yes | Yes | Yes | Yes | Yes | Yes |
|
||||||
| `str` | No | Yes | No | Yes | Yes | No |
|
| `str` | No | Yes | No | Yes | Yes | No |
|
||||||
| `char` | Yes | No | No | Yes | No | No |
|
| `char` | Yes | No | No | Yes | No | No |
|
||||||
| `bool` | Yes | No | No | Yes | No | No |
|
| `bool` | Yes | No | No | Yes | No | No |
|
||||||
|
Loading…
Reference in New Issue
Block a user