I've just started messing with WebAssembly using Rust.
I've gotten a few examples working but I am a little confused about how the state of any Rust structs are maintained when rust code cedes control back to the browser UI.
If I return a struct marked with #[wasm_bindgen]
from a Rust function and store it in a javascript variable, is that inefficient if the struct is very large? Is there a better way?