This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[wasm_bindgen] | |
pub struct MyEmulator { | |
// Put any state that needs to persist between frames. | |
} | |
#[wasm_bindgen] | |
impl MyEmulator { | |
#[wasm_bindgen(constructor)] | |
pub fn new() -> Self { | |
// ... |
OlderNewer