Struct wast::component::ComponentFunctionType
source · pub struct ComponentFunctionType<'a> {
pub params: Box<[ComponentFunctionParam<'a>]>,
pub results: Box<[ComponentFunctionResult<'a>]>,
}
Expand description
A component function type with parameters and result.
Fields§
§params: Box<[ComponentFunctionParam<'a>]>
The parameters of a function, optionally each having an identifier for
name resolution and a name for the custom name
section.
results: Box<[ComponentFunctionResult<'a>]>
The result of a function, optionally each having an identifier for
name resolution and a name for the custom name
section.
Trait Implementations§
source§impl<'a> Debug for ComponentFunctionType<'a>
impl<'a> Debug for ComponentFunctionType<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ComponentFunctionType<'a>
impl<'a> Send for ComponentFunctionType<'a>
impl<'a> Sync for ComponentFunctionType<'a>
impl<'a> Unpin for ComponentFunctionType<'a>
impl<'a> UnwindSafe for ComponentFunctionType<'a>
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