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 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