pub trait RIType: Sized {
type FFIType: IntoValue + TryFromValue + WasmTy;
type Inner;
}Expand description
Something that can be used by the runtime interface as type to communicate between the runtime and the host.
Every type that should be used in a runtime interface function signature needs to implement this trait.
Required Associated Types§
Sourcetype FFIType: IntoValue + TryFromValue + WasmTy
type FFIType: IntoValue + TryFromValue + WasmTy
The raw FFI type that is used to pass Self through the host <-> runtime boundary.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.