Trait wasmtime::component::Lift

source ·
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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Lift for bool

source§

impl Lift for char

source§

impl Lift for f32

source§

impl Lift for f64

source§

impl Lift for i8

source§

impl Lift for i16

source§

impl Lift for i32

source§

impl Lift for i64

source§

impl Lift for u8

source§

impl Lift for u16

source§

impl Lift for u32

source§

impl Lift for u64

source§

impl Lift for ()

source§

impl Lift for Box<str>

source§

impl Lift for Rc<str>

source§

impl Lift for String

source§

impl Lift for Arc<str>

source§

impl<A1> Lift for (A1,)
where A1: Lift,

source§

impl<A1, A2> Lift for (A1, A2)
where A1: Lift, A2: Lift,

source§

impl<A1, A2, A3> Lift for (A1, A2, A3)
where A1: Lift, A2: Lift, A3: Lift,

source§

impl<A1, A2, A3, A4> Lift for (A1, A2, A3, A4)
where A1: Lift, A2: Lift, A3: Lift, A4: Lift,

source§

impl<A1, A2, A3, A4, A5> Lift for (A1, A2, A3, A4, A5)
where A1: Lift, A2: Lift, A3: Lift, A4: Lift, A5: Lift,

source§

impl<A1, A2, A3, A4, A5, A6> Lift for (A1, A2, A3, A4, A5, A6)
where A1: Lift, A2: Lift, A3: Lift, A4: Lift, A5: Lift, A6: Lift,

source§

impl<A1, A2, A3, A4, A5, A6, A7> Lift for (A1, A2, A3, A4, A5, A6, A7)
where A1: Lift, A2: Lift, A3: Lift, A4: Lift, A5: Lift, A6: Lift, A7: Lift,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8> Lift for (A1, A2, A3, A4, A5, A6, A7, A8)
where A1: Lift, A2: Lift, A3: Lift, A4: Lift, A5: Lift, A6: Lift, A7: Lift, A8: Lift,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9> Lift for (A1, A2, A3, A4, A5, A6, A7, A8, A9)
where A1: Lift, A2: Lift, A3: Lift, A4: Lift, A5: Lift, A6: Lift, A7: Lift, A8: Lift, A9: Lift,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10> Lift for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)
where A1: Lift, A2: Lift, A3: Lift, A4: Lift, A5: Lift, A6: Lift, A7: Lift, A8: Lift, A9: Lift, A10: Lift,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11> Lift for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)
where A1: Lift, A2: Lift, A3: Lift, A4: Lift, A5: Lift, A6: Lift, A7: Lift, A8: Lift, A9: Lift, A10: Lift, A11: Lift,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12> Lift for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)
where A1: Lift, A2: Lift, A3: Lift, A4: Lift, A5: Lift, A6: Lift, A7: Lift, A8: Lift, A9: Lift, A10: Lift, A11: Lift, A12: Lift,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13> Lift for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)
where A1: Lift, A2: Lift, A3: Lift, A4: Lift, A5: Lift, A6: Lift, A7: Lift, A8: Lift, A9: Lift, A10: Lift, A11: Lift, A12: Lift, A13: Lift,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14> Lift for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)
where A1: Lift, A2: Lift, A3: Lift, A4: Lift, A5: Lift, A6: Lift, A7: Lift, A8: Lift, A9: Lift, A10: Lift, A11: Lift, A12: Lift, A13: Lift, A14: Lift,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15> Lift for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)
where A1: Lift, A2: Lift, A3: Lift, A4: Lift, A5: Lift, A6: Lift, A7: Lift, A8: Lift, A9: Lift, A10: Lift, A11: Lift, A12: Lift, A13: Lift, A14: Lift, A15: Lift,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16> Lift for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)
where A1: Lift, A2: Lift, A3: Lift, A4: Lift, A5: Lift, A6: Lift, A7: Lift, A8: Lift, A9: Lift, A10: Lift, A11: Lift, A12: Lift, A13: Lift, A14: Lift, A15: Lift, A16: Lift,

source§

impl<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17> Lift for (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17)
where A1: Lift, A2: Lift, A3: Lift, A4: Lift, A5: Lift, A6: Lift, A7: Lift, A8: Lift, A9: Lift, A10: Lift, A11: Lift, A12: Lift, A13: Lift, A14: Lift, A15: Lift, A16: Lift, A17: Lift,

source§

impl<T> Lift for Option<T>
where T: Lift,

source§

impl<T, E> Lift for Result<T, E>
where T: Lift, E: Lift,

source§

impl<T: Lift> Lift for Box<[T]>

source§

impl<T: Lift> Lift for Rc<[T]>

source§

impl<T: Lift> Lift for Arc<[T]>

source§

impl<T: Lift> Lift for Vec<T>

Implementors§

source§

impl Lift for ResourceAny

source§

impl Lift for WasmStr

source§

impl<T: 'static> Lift for Resource<T>

source§

impl<T: Lift> Lift for WasmList<T>