Struct parity_wasm::builder::SignatureBuilder
source · pub struct SignatureBuilder<F = Identity> { /* private fields */ }
Expand description
Signature builder
Implementations§
source§impl<F> SignatureBuilder<F>where
F: Invoke<FunctionType>,
impl<F> SignatureBuilder<F>where
F: Invoke<FunctionType>,
sourcepub fn with_callback(callback: F) -> Self
pub fn with_callback(callback: F) -> Self
New builder with callback function specified
sourcepub fn with_param(self, value_type: ValueType) -> Self
pub fn with_param(self, value_type: ValueType) -> Self
Add argument to signature builder
sourcepub fn with_params(self, value_types: Vec<ValueType>) -> Self
pub fn with_params(self, value_types: Vec<ValueType>) -> Self
Add multiple arguments to signature builder
sourcepub fn with_result(self, value_type: ValueType) -> Self
pub fn with_result(self, value_type: ValueType) -> Self
Add result to signature builder
sourcepub fn with_results(self, value_types: Vec<ValueType>) -> Self
pub fn with_results(self, value_types: Vec<ValueType>) -> Self
Add multiple results to signature builder