pub unsafe trait WasmTy: Send { }
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
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§
impl WasmTy for Option<Func>
Available on crate feature
runtime
only.impl WasmTy for Option<I31>
Available on crate features
gc
and runtime
only.impl WasmTy for Option<NoExtern>
Available on crate feature
runtime
only.impl WasmTy for Option<NoFunc>
Available on crate feature
runtime
only.impl WasmTy for Option<NoneRef>
Available on crate feature
runtime
only.impl WasmTy for Option<OwnedRooted<AnyRef>>
Available on crate features
gc
and runtime
only.impl WasmTy for Option<OwnedRooted<ArrayRef>>
Available on crate features
gc
and runtime
only.impl WasmTy for Option<OwnedRooted<EqRef>>
Available on crate features
gc
and runtime
only.impl WasmTy for Option<OwnedRooted<ExnRef>>
Available on crate features
gc
and runtime
only.impl WasmTy for Option<OwnedRooted<ExternRef>>
Available on crate features
gc
and runtime
only.impl WasmTy for Option<OwnedRooted<StructRef>>
Available on crate features
gc
and runtime
only.impl WasmTy for Option<Rooted<AnyRef>>
Available on crate features
gc
and runtime
only.impl WasmTy for Option<Rooted<ArrayRef>>
Available on crate features
gc
and runtime
only.impl WasmTy for Option<Rooted<EqRef>>
Available on crate features
gc
and runtime
only.impl WasmTy for Option<Rooted<ExnRef>>
Available on crate features
gc
and runtime
only.impl WasmTy for Option<Rooted<ExternRef>>
Available on crate features
gc
and runtime
only.impl WasmTy for Option<Rooted<StructRef>>
Available on crate features
gc
and runtime
only.impl WasmTy for f32
Available on crate feature
runtime
only.impl WasmTy for f64
Available on crate feature
runtime
only.impl WasmTy for i32
Available on crate feature
runtime
only.impl WasmTy for i64
Available on crate feature
runtime
only.impl WasmTy for u32
Available on crate feature
runtime
only.impl WasmTy for u64
Available on crate feature
runtime
only.Implementors§
impl WasmTy for Func
Available on crate feature
runtime
only.impl WasmTy for I31
Available on crate features
gc
and runtime
only.impl WasmTy for NoExtern
Available on crate feature
runtime
only.impl WasmTy for NoFunc
Available on crate feature
runtime
only.impl WasmTy for NoneRef
Available on crate feature
runtime
only.impl WasmTy for OwnedRooted<AnyRef>
Available on crate features
gc
and runtime
only.impl WasmTy for OwnedRooted<ArrayRef>
Available on crate features
gc
and runtime
only.impl WasmTy for OwnedRooted<EqRef>
Available on crate features
gc
and runtime
only.impl WasmTy for OwnedRooted<ExnRef>
Available on crate features
gc
and runtime
only.impl WasmTy for OwnedRooted<ExternRef>
Available on crate features
gc
and runtime
only.impl WasmTy for OwnedRooted<StructRef>
Available on crate features
gc
and runtime
only.impl WasmTy for Rooted<AnyRef>
Available on crate features
gc
and runtime
only.impl WasmTy for Rooted<ArrayRef>
Available on crate features
gc
and runtime
only.impl WasmTy for Rooted<EqRef>
Available on crate features
gc
and runtime
only.impl WasmTy for Rooted<ExnRef>
Available on crate features
gc
and runtime
only.impl WasmTy for Rooted<ExternRef>
Available on crate features
gc
and runtime
only.impl WasmTy for Rooted<StructRef>
Available on crate features
gc
and runtime
only.impl WasmTy for V128
Available on crate feature
runtime
only.