pub trait ToWasm {
// Required methods
fn u32_size() -> usize;
fn read_to_wasm(inp: &mut ToWasmMsgRef<'_>) -> Self;
fn to_wasm_js_body(
out: &mut WasmJSOutput,
slot: usize,
is_recur: bool,
prop: &str,
temp: usize,
);
// Provided methods
fn type_name() -> &'static str { ... }
fn live_id() -> LiveId { ... }
fn to_js_code() -> String { ... }
}
Required Methods§
fn u32_size() -> usize
fn read_to_wasm(inp: &mut ToWasmMsgRef<'_>) -> Self
fn to_wasm_js_body( out: &mut WasmJSOutput, slot: usize, is_recur: bool, prop: &str, temp: usize, )
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.