makepad_wasm_bridge

Trait FromWasm

Source
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§

Source

fn from_wasm_inner(self, out: &mut FromWasmMsg)

Source

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

Provided Methods§

Source

fn type_name() -> &'static str

Source

fn live_id() -> LiveId

Source

fn write_from_wasm(self, out: &mut FromWasmMsg)
where Self: Sized,

Source

fn from_wasm_js_reuse(wrapper: &mut String)

Source

fn to_js_code() -> String

Source

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.

Implementations on Foreign Types§

Source§

impl FromWasm for &str

Source§

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

Source§

fn from_wasm_inner(self, out: &mut FromWasmMsg)

Source§

impl FromWasm for bool

Source§

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

Source§

fn from_wasm_inner(self, out: &mut FromWasmMsg)

Source§

impl FromWasm for f32

Source§

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

Source§

fn from_wasm_inner(self, out: &mut FromWasmMsg)

Source§

impl FromWasm for f64

Source§

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

Source§

fn from_wasm_inner(self, out: &mut FromWasmMsg)

Source§

impl FromWasm for u32

Source§

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

Source§

fn from_wasm_inner(self, out: &mut FromWasmMsg)

Source§

impl FromWasm for usize

Source§

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

Source§

fn from_wasm_inner(self, out: &mut FromWasmMsg)

Source§

impl FromWasm for String

Source§

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

Source§

fn from_wasm_inner(self, out: &mut FromWasmMsg)

Source§

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

Source§

fn from_wasm_inner(self, out: &mut FromWasmMsg)

Source§

fn from_wasm_js_body( out: &mut WasmJSOutput, slot: usize, is_recur: bool, prop: &str, _temp: usize, )

Source§

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

Source§

fn from_wasm_inner(self, out: &mut FromWasmMsg)

Source§

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

Source§

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

Source§

fn from_wasm_inner(self, out: &mut FromWasmMsg)

Source§

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

Source§

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

Source§

fn from_wasm_inner(self, out: &mut FromWasmMsg)

Source§

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

Implementors§