Trait wasmtime::WasmTy

source ·
pub unsafe trait WasmTy: Send { }
Available on crate feature runtime only.
Expand description

A trait implemented for types which can be arguments and results for closures passed to Func::wrap as well as parameters to Func::typed.

This trait should not be implemented by user types. This trait may change at any time internally. The types which implement this trait, however, are stable over time.

For more information see Func::wrap and Func::typed

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WasmTy for Option<Func>

source§

impl WasmTy for Option<I31>

Available on crate feature gc only.
source§

impl WasmTy for Option<ManuallyRooted<AnyRef>>

Available on crate feature gc only.
source§

impl WasmTy for Option<ManuallyRooted<ExternRef>>

Available on crate feature gc only.
source§

impl WasmTy for Option<NoExtern>

source§

impl WasmTy for Option<NoFunc>

source§

impl WasmTy for Option<Rooted<AnyRef>>

Available on crate feature gc only.
source§

impl WasmTy for Option<Rooted<ExternRef>>

Available on crate feature gc only.
source§

impl WasmTy for f32

source§

impl WasmTy for f64

source§

impl WasmTy for i32

source§

impl WasmTy for i64

source§

impl WasmTy for u32

source§

impl WasmTy for u64

Implementors§

source§

impl WasmTy for Func

source§

impl WasmTy for I31

Available on crate feature gc only.
source§

impl WasmTy for ManuallyRooted<AnyRef>

Available on crate feature gc only.
source§

impl WasmTy for ManuallyRooted<ExternRef>

Available on crate feature gc only.
source§

impl WasmTy for NoExtern

source§

impl WasmTy for NoFunc

source§

impl WasmTy for Rooted<AnyRef>

Available on crate feature gc only.
source§

impl WasmTy for Rooted<ExternRef>

Available on crate feature gc only.
source§

impl WasmTy for V128

Available on x86-64 or AArch64 only.