pub fn from_js<T>(val: JsValue) -> Result<T, WasmCommonError>where
T: DeserializeOwned,Expand description
Deserialize a JavaScript value.
ยงErrors
Returns WasmCommonError::Decode when the value does not match T.
pub fn from_js<T>(val: JsValue) -> Result<T, WasmCommonError>where
T: DeserializeOwned,Deserialize a JavaScript value.
Returns WasmCommonError::Decode when the value does not match T.