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
New function type given the signature in-params(params
) and return type (return_type
)
fn form(&self) -> u8
Function form (currently only valid value is 0x60
)
fn params(&self) -> &[ValueType]
Parameters in the function signature.
fn params_mut(&mut self) -> &mut Vec<ValueType>
Mutable parameters in the function signature.
fn return_type(&self) -> Option<ValueType>
Return type in the function signature, if any.
fn return_type_mut(&mut self) -> &mut Option<ValueType>
Mutable type in the function signature, if any.
Trait Implementations
impl Debug for FunctionType
[src]
impl PartialEq for FunctionType
[src]
fn eq(&self, __arg_0: &FunctionType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FunctionType) -> bool
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>
Deserialize type from serial i/o