pub unsafe trait Lift: Sized + ComponentType { }Expand description
Host types which can be created from the canonical ABI.
This is the mirror of the Lower trait where it represents the capability
of acquiring items from WebAssembly and passing them to the host.
Built-in types to Rust such as Option<T> implement this trait as
appropriate. For a mapping of component model to Rust types see
ComponentType.
For user-defined types, for example record types mapped to Rust structs,
this crate additionally has
#[derive(Lift)].
Note that like ComponentType the definition of this trait is intended to
be an internal implementation detail of Wasmtime at this time. It’s
recommended to use the #[derive(Lift)] implementation instead.
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.