wasm-bindgen-macro 0.2.92

Definition of the `#[wasm_bindgen]` attribute, an internal dependency
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
extern "C" {
    pub type Foo;
}

#[wasm_bindgen]
struct Bar {
    pub a: Foo,
    #[wasm_bindgen(getter_with_clone)]
    pub b: Foo,
}

fn main() {}