Enum parity_wasm::interpreter::UserFunctionDescriptor
[−]
[src]
pub enum UserFunctionDescriptor { Static(&'static str, &'static [ValueType], Option<ValueType>), Heap(String, Vec<ValueType>, Option<ValueType>), }
User function descriptor
Variants
Static(&'static str, &'static [ValueType], Option<ValueType>)
Static function definition
Heap(String, Vec<ValueType>, Option<ValueType>)
Dynamic heap function definition
Methods
impl UserFunctionDescriptor
[src]
fn statik(
name: &'static str,
params: &'static [ValueType],
result: Option<ValueType>
) -> Self
name: &'static str,
params: &'static [ValueType],
result: Option<ValueType>
) -> Self
New function with statically known params
fn heap(name: String, params: Vec<ValueType>, result: Option<ValueType>) -> Self
New function with statically unknown params
fn name(&self) -> &str
Name of the function
fn params(&self) -> &[ValueType]
Arguments of the function
fn return_type(&self) -> Option<ValueType>
Return type of the function
Trait Implementations
impl Debug for UserFunctionDescriptor
[src]
impl Clone for UserFunctionDescriptor
[src]
fn clone(&self) -> UserFunctionDescriptor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more