pub trait IntoResult<T>where
T: WasmTypeList,{
type Error: Error + Sync + Send + 'static;
// Required method
fn into_result(self) -> Result<T, Self::Error>;
}Expand description
The IntoResult trait turns a WasmTypeList into a
Result<WasmTypeList, Self::Error>.
It is mostly used to turn result values of a Wasm function
call into a Result.
Required Associated Types§
Required Methods§
Sourcefn into_result(self) -> Result<T, Self::Error>
fn into_result(self) -> Result<T, Self::Error>
Transforms Self into a Result.