Skip to main content

impl_wire_object

Macro impl_wire_object 

Source
macro_rules! impl_wire_object {
    ($($ty:ty),* $(,)?) => { ... };
}
Expand description

Implements both traits for a type that crosses as itself: a #[wasm_bindgen] handle, an extern "C" type, or a primitive wasm_bindgen already understands.

#[wasm_object] and #[wasm_import] call this for the types they declare.