pub struct FuncType { /* private fields */ }Expand description
A function signature — an engine-interned handle (identity by canonical type id; the
structure is materialized from the engine registry). Matches wasmtime::FuncType.
Refcounted (#27i): the handle holds one registration on its type’s rec group; Clone increfs
and Drop decrefs, so the group is reclaimed once the last handle (and any Module/Store
holding it) is gone.
Implementations§
Source§impl FuncType
impl FuncType
pub fn new( engine: &Engine, params: impl IntoIterator<Item = ValType>, results: impl IntoIterator<Item = ValType>, ) -> FuncType
pub fn params(&self) -> impl ExactSizeIterator<Item = ValType>
pub fn results(&self) -> impl ExactSizeIterator<Item = ValType>
Trait Implementations§
impl Eq for FuncType
Auto Trait Implementations§
impl Freeze for FuncType
impl RefUnwindSafe for FuncType
impl Send for FuncType
impl Sync for FuncType
impl Unpin for FuncType
impl UnsafeUnpin for FuncType
impl UnwindSafe for FuncType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.