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