pub struct ComponentFunctionType<'a> {
pub params: Box<[ComponentFunctionParam<'a>]>,
pub result: Option<ComponentValType<'a>>,
}Available on crate feature
component-model only.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.
result: Option<ComponentValType<'a>>The result of a function.
Trait Implementations§
Source§impl<'a> Debug for ComponentFunctionType<'a>
impl<'a> Debug for ComponentFunctionType<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComponentFunctionType<'a>
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