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[src]
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[src]
New function with statically unknown params
fn name(&self) -> &str[src]
Name of the function
fn params(&self) -> &[ValueType][src]
Arguments of the function
fn return_type(&self) -> Option<ValueType>[src]
Return type of the function
Trait Implementations
impl Debug for UserFunctionDescriptor[src]
impl Clone for UserFunctionDescriptor[src]
fn clone(&self) -> UserFunctionDescriptor[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