Struct parity_wasm::elements::FunctionType [−][src]
pub struct FunctionType { /* fields omitted */ }Function signature type.
Implementations
impl FunctionType[src]
impl FunctionType[src]pub 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)
pub fn form(&self) -> u8[src]
Function form (currently only valid value is 0x60)
pub fn params(&self) -> &[ValueType][src]
Parameters in the function signature.
pub fn params_mut(&mut self) -> &mut Vec<ValueType>[src]
Mutable parameters in the function signature.
pub fn return_type(&self) -> Option<ValueType>[src]
Return type in the function signature, if any.
pub fn return_type_mut(&mut self) -> &mut Option<ValueType>[src]
Mutable type in the function signature, if any.
Trait Implementations
impl Clone for FunctionType[src]
impl Clone for FunctionType[src]fn clone(&self) -> FunctionType[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for FunctionType[src]
impl Default for FunctionType[src]impl Deserialize for FunctionType[src]
impl Deserialize for FunctionType[src]impl Hash for FunctionType[src]
impl Hash for FunctionType[src]impl PartialEq<FunctionType> for FunctionType[src]
impl PartialEq<FunctionType> for FunctionType[src]fn eq(&self, other: &FunctionType) -> bool[src]
fn ne(&self, other: &FunctionType) -> bool[src]
impl Serialize for FunctionType[src]
impl Serialize for FunctionType[src]