Struct WasmRet
#[repr(C)]
pub struct WasmRet<T: WasmAbi> { /* private fields */ }
A repr(C) struct containing all of the primitives of a WasmAbi type, in
order.
This is used as the return type of imported/exported functions. WasmAbi
types aren't guaranteed to be FFI-safe, so we can't return them directly:
instead we return this.
If all but one of the primitives is (), this corresponds to returning the
remaining primitive directly, otherwise a return pointer is used.
⚠️ Unstable
This is part of the internal convert module, no
stability guarantees are provided. Use at your own risk. See its
documentation for more details.
Implementations
impl<T: WasmAbi> WasmRet<T>
fn join(self) -> TJoins the components of this
WasmRetback into the type they represent.
Trait Implementations
impl<T: WasmAbi> From<T> for WasmRet<T>
fn from(value: T) -> Self