Struct parity_wasm::elements::FunctionType
[−]
[src]
pub struct FunctionType { /* fields omitted */ }Function signature type.
Methods
impl FunctionType[src]
fn new(params: Vec<ValueType>, return_type: Option<ValueType>) -> Self[src]
New function type given the signature in-params(params) and return type (return_type)
fn form(&self) -> u8[src]
Function form (currently only valid value is 0x60)
fn params(&self) -> &[ValueType][src]
Parameters in the function signature.
fn params_mut(&mut self) -> &mut Vec<ValueType>[src]
Mutable parameters in the function signature.
fn return_type(&self) -> Option<ValueType>[src]
Return type in the function signature, if any.
fn return_type_mut(&mut self) -> &mut Option<ValueType>[src]
Mutable type in the function signature, if any.
Trait Implementations
impl Debug for FunctionType[src]
impl Clone for FunctionType[src]
fn clone(&self) -> FunctionType[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for FunctionType[src]
fn eq(&self, __arg_0: &FunctionType) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &FunctionType) -> bool[src]
This method tests for !=.
impl Default for FunctionType[src]
impl Deserialize for FunctionType[src]
type Error = Error
Serialization error produced by deserialization routine.
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, Self::Error>[src]
Deserialize type from serial i/o