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§

source

fn u32_size() -> usize

source

fn read_to_wasm(inp: &mut ToWasmMsgRef<'_>) -> Self

source

fn to_wasm_js_body( out: &mut WasmJSOutput, slot: usize, is_recur: bool, prop: &str, temp: usize )

Provided Methods§

Implementations on Foreign Types§

source§

impl ToWasm for usize

source§

fn read_to_wasm(inp: &mut ToWasmMsgRef<'_>) -> Self

source§

fn to_wasm_js_body( out: &mut WasmJSOutput, slot: usize, _is_recur: bool, prop: &str, _temp: usize )

source§

fn u32_size() -> usize

source§

impl ToWasm for f64

source§

fn read_to_wasm(inp: &mut ToWasmMsgRef<'_>) -> Self

source§

fn to_wasm_js_body( out: &mut WasmJSOutput, slot: usize, _is_recur: bool, prop: &str, _temp: usize )

source§

fn u32_size() -> usize

source§

impl ToWasm for f32

source§

fn read_to_wasm(inp: &mut ToWasmMsgRef<'_>) -> Self

source§

fn to_wasm_js_body( out: &mut WasmJSOutput, slot: usize, _is_recur: bool, prop: &str, _temp: usize )

source§

fn u32_size() -> usize

source§

impl<T, const N: usize> ToWasm for [T; N]where T: ToWasm,

source§

fn u32_size() -> usize

source§

fn read_to_wasm(inp: &mut ToWasmMsgRef<'_>) -> Self

source§

fn to_wasm_js_body( out: &mut WasmJSOutput, slot: usize, is_recur: bool, prop: &str, temp: usize )

source§

impl<T> ToWasm for Vec<T>where T: ToWasm,

source§

fn u32_size() -> usize

source§

fn read_to_wasm(inp: &mut ToWasmMsgRef<'_>) -> Self

source§

fn to_wasm_js_body( out: &mut WasmJSOutput, slot: usize, _is_recur: bool, prop: &str, temp: usize )

source§

impl<T> ToWasm for Box<T>where T: ToWasm,

source§

fn u32_size() -> usize

source§

fn read_to_wasm(inp: &mut ToWasmMsgRef<'_>) -> Self

source§

fn to_wasm_js_body( out: &mut WasmJSOutput, slot: usize, _is_recur: bool, prop: &str, temp: usize )

source§

impl ToWasm for String

source§

fn read_to_wasm(inp: &mut ToWasmMsgRef<'_>) -> Self

source§

fn to_wasm_js_body( out: &mut WasmJSOutput, slot: usize, _is_recur: bool, prop: &str, _temp: usize )

source§

fn u32_size() -> usize

source§

impl<T> ToWasm for Option<T>where T: ToWasm,

source§

fn u32_size() -> usize

source§

fn read_to_wasm(inp: &mut ToWasmMsgRef<'_>) -> Self

source§

fn to_wasm_js_body( out: &mut WasmJSOutput, slot: usize, is_recur: bool, prop: &str, temp: usize )

source§

impl ToWasm for bool

source§

fn read_to_wasm(inp: &mut ToWasmMsgRef<'_>) -> Self

source§

fn to_wasm_js_body( out: &mut WasmJSOutput, slot: usize, _is_recur: bool, prop: &str, _temp: usize )

source§

fn u32_size() -> usize

source§

impl ToWasm for u32

source§

fn read_to_wasm(inp: &mut ToWasmMsgRef<'_>) -> Self

source§

fn to_wasm_js_body( out: &mut WasmJSOutput, slot: usize, _is_recur: bool, prop: &str, _temp: usize )

source§

fn u32_size() -> usize

Implementors§