Struct parity_wasm::elements::FunctionType
source · pub struct FunctionType { /* private fields */ }
Expand description
Function signature type.
Implementations§
source§impl FunctionType
impl FunctionType
sourcepub fn new(params: Vec<ValueType>, results: Vec<ValueType>) -> Self
pub fn new(params: Vec<ValueType>, results: Vec<ValueType>) -> Self
New function type given the params and results as vectors
sourcepub fn params_mut(&mut self) -> &mut Vec<ValueType>
pub fn params_mut(&mut self) -> &mut Vec<ValueType>
Mutable parameters in the function signature.
sourcepub fn results_mut(&mut self) -> &mut Vec<ValueType>
pub fn results_mut(&mut self) -> &mut Vec<ValueType>
Mutable type in the function signature, if any.
Trait Implementations§
source§impl Clone for FunctionType
impl Clone for FunctionType
source§fn clone(&self) -> FunctionType
fn clone(&self) -> FunctionType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more