mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-16 14:02:06 +03:00
22 lines
353 B
Rust
22 lines
353 B
Rust
#![crate_type = "rlib"]
|
|
|
|
extern crate wasm_bindgen;
|
|
|
|
use wasm_bindgen::prelude::*;
|
|
|
|
#[wasm_bindgen]
|
|
extern "C" {
|
|
type A;
|
|
|
|
#[wasm_bindgen(setter, method)]
|
|
fn a(this: &A, b: i32);
|
|
|
|
#[wasm_bindgen(setter = x, method)]
|
|
fn b(this: &A, b: i32);
|
|
|
|
#[wasm_bindgen(setter, method, js_name = x)]
|
|
fn c(this: &A, b: i32);
|
|
}
|
|
|
|
fn main() {}
|