Struct parity_wasm::interpreter::UserFunction
[−]
[src]
pub struct UserFunction { pub desc: UserFunctionDescriptor, pub result: Option<ValueType>, }
User function type.
Fields
desc: UserFunctionDescriptor
Descriptor with variable-length definitions
result: Option<ValueType>
Return type of the signature
Methods
impl UserFunction
[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 result(&self) -> Option<ValueType>
Return type of the function
Trait Implementations
impl Clone for UserFunction
[src]
fn clone(&self) -> UserFunction
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