Struct wasmtime_environ::wasmparser::ComponentFuncType
source · [−]pub struct ComponentFuncType<'a> {
pub params: Box<[(Option<&'a str>, InterfaceTypeRef)], Global>,
pub result: InterfaceTypeRef,
}
Expand description
Represents a type of a function in a WebAssembly component.
Fields
params: Box<[(Option<&'a str>, InterfaceTypeRef)], Global>
The function parameter types.
result: InterfaceTypeRef
The function result type.
Trait Implementations
sourceimpl<'a> Clone for ComponentFuncType<'a>
impl<'a> Clone for ComponentFuncType<'a>
sourcefn clone(&self) -> ComponentFuncType<'a>
fn clone(&self) -> ComponentFuncType<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for ComponentFuncType<'a>
impl<'a> Send for ComponentFuncType<'a>
impl<'a> Sync for ComponentFuncType<'a>
impl<'a> Unpin for ComponentFuncType<'a>
impl<'a> UnwindSafe for ComponentFuncType<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more