wasmtime::component

Trait Lower

Source
pub unsafe trait Lower: ComponentType { }
Available on crate features runtime and component-model only.
Expand description

Host types which can be passed to WebAssembly components.

This trait is implemented for all types that can be passed to components either as parameters of component exports or returns of component imports. This trait represents the ability to convert from the native host representation to the canonical ABI.

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(Lower)].

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(Lower)] 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.

Implementations on Foreign Types§

Source§

impl Lower for bool

Source§

impl Lower for char

Source§

impl Lower for f32

Source§

impl Lower for f64

Source§

impl Lower for i8

Source§

impl Lower for i16

Source§

impl Lower for i32

Source§

impl Lower for i64

Source§

impl Lower for str

Source§

impl Lower for u8

Source§

impl Lower for u16

Source§

impl Lower for u32

Source§

impl Lower for u64

Source§

impl Lower for ()

Source§

impl Lower for String

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T> Lower for [T]
where T: Lower,

Source§

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

Source§

impl<T: Lower + ?Sized> Lower for &T

Source§

impl<T: Lower + ?Sized> Lower for Box<T>

Source§

impl<T: Lower + ?Sized> Lower for Rc<T>

Source§

impl<T: Lower + ?Sized> Lower for Arc<T>

Source§

impl<T: Lower> Lower for Vec<T>

Implementors§

Source§

impl Lower for wasmtime::component::bindgen_examples::_3_interface_imports::example::interface_imports::logging::Level

Available on docsrs only.
Source§

impl Lower for wasmtime::component::bindgen_examples::_4_imported_resources::example::imported_resources::logging::Level

Available on docsrs only.
Source§

impl Lower for wasmtime::component::bindgen_examples::_6_exported_resources::exports::example::exported_resources::logging::Level

Available on docsrs only.
Source§

impl Lower for wasmtime::component::bindgen_examples::_7_async::example::imported_resources::logging::Level

Available on docsrs only.
Source§

impl Lower for ResourceAny

Source§

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