pub trait FromWasm {
// Required methods
fn from_wasm_inner(self, out: &mut FromWasmMsg);
fn from_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 write_from_wasm(self, out: &mut FromWasmMsg)
where Self: Sized { ... }
fn from_wasm_js_reuse(wrapper: &mut String) { ... }
fn to_js_code() -> String { ... }
fn from_wasm_js_inner(wrapper: &mut String, reuse_arg: bool) { ... }
}
Required Methods§
fn from_wasm_inner(self, out: &mut FromWasmMsg)
fn from_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 write_from_wasm(self, out: &mut FromWasmMsg)where
Self: Sized,
fn from_wasm_js_reuse(wrapper: &mut String)
fn to_js_code() -> String
fn from_wasm_js_inner(wrapper: &mut String, reuse_arg: bool)
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.