Enum parity_wasm::interpreter::FunctionSignature
[−]
[src]
pub enum FunctionSignature<'a> {
Module(&'a FunctionType),
User(&'a UserFunctionDescriptor),
}Function signature.
Variants
Module(&'a FunctionType)Module function reference.
User(&'a UserFunctionDescriptor)Native user function refrence.
Methods
impl<'a> FunctionSignature<'a>[src]
fn return_type(&self) -> Option<ValueType>[src]
Get return type of this function.
fn params(&self) -> &[ValueType][src]
Get parameters of this function.
Trait Implementations
impl<'a> Debug for FunctionSignature<'a>[src]
impl<'a> Clone for FunctionSignature<'a>[src]
fn clone(&self) -> FunctionSignature<'a>[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<'a> PartialEq for FunctionSignature<'a>[src]
fn eq<'b>(&self, other: &FunctionSignature<'b>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl<'a> From<&'a FunctionType> for FunctionSignature<'a>[src]
fn from(other: &'a FunctionType) -> Self[src]
Performs the conversion.