Struct wast::FunctionType [−][src]
pub struct FunctionType<'a> {
pub params: Box<[(Option<Id<'a>>, Option<NameAnnotation<'a>>, ValType<'a>)]>,
pub results: Box<[ValType<'a>]>,
}
Expand description
A function type with parameters and results.
Fields
params: Box<[(Option<Id<'a>>, Option<NameAnnotation<'a>>, ValType<'a>)]>
The parameters of a function, optionally each having an identifier for
name resolution and a name for the custom name
section.
results: Box<[ValType<'a>]>
The results types of a function.
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Returns a human-readable name of this token to display when generating errors about this token missing. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for FunctionType<'a>
impl<'a> Send for FunctionType<'a>
impl<'a> Sync for FunctionType<'a>
impl<'a> Unpin for FunctionType<'a>
impl<'a> UnwindSafe for FunctionType<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more