Struct wast::core::FunctionType
source · [−]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
sourceimpl<'a> Clone for FunctionType<'a>
impl<'a> Clone for FunctionType<'a>
sourcefn clone(&self) -> FunctionType<'a>
fn clone(&self) -> FunctionType<'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
sourceimpl<'a> Debug for FunctionType<'a>
impl<'a> Debug for FunctionType<'a>
sourceimpl<'a> Default for FunctionType<'a>
impl<'a> Default for FunctionType<'a>
sourcefn default() -> FunctionType<'a>
fn default() -> FunctionType<'a>
Returns the “default value” for a type. Read more
sourceimpl<'a> From<FunctionTypeNoNames<'a>> for FunctionType<'a>
impl<'a> From<FunctionTypeNoNames<'a>> for FunctionType<'a>
sourcefn from(ty: FunctionTypeNoNames<'a>) -> FunctionType<'a>
fn from(ty: FunctionTypeNoNames<'a>) -> FunctionType<'a>
Performs the conversion.
sourceimpl<'a> Parse<'a> for FunctionType<'a>
impl<'a> Parse<'a> for FunctionType<'a>
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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more