Function workflow_wasm::abi::ref_from_abi
source · pub unsafe fn ref_from_abi<T>(js: &JsValue) -> Result<T, Error>where
T: RefFromWasmAbi<Abi = u32> + Clone,
Expand description
Create a reference to a Rust object from a WASM ABI.
Safety
Only basic sanity checks are performed. If user passes and invalid
object containing ptr
property (i.e. another Rust-wasm-bindgen-created object)
the application will yield a memory access violation.