guide: Add a char example to the supported types section

This commit is contained in:
Nick Fitzgerald
2018-08-13 16:24:39 -07:00
parent 74dc8874e1
commit 975a122d6d
4 changed files with 31 additions and 0 deletions

View File

@ -91,6 +91,18 @@ garbage-collected heap and the Wasm linear memory with `TextDecoder` and
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| Yes | No | No | Yes | No | No | A JavaScript string value |
### Example Rust Usage
```rust
{{#include ../../../examples/guide-supported-types-examples/src/char.rs}}
```
### Example JavaScript Usage
```js
{{#include ../../../examples/guide-supported-types-examples/char.js}}
```
## `bool`
| `T` parameter | `&T` parameter | `&mut T` parameter | `T` return value | `Option<T>` parameter | `Option<T>` return value | JavaScript representation |