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<I>(self, value_types: I) -> Selfwhere
I: IntoIterator<Item = ValueType>,
pub fn with_params<I>(self, value_types: I) -> Selfwhere I: IntoIterator<Item = ValueType>,
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<I>(self, value_types: I) -> Selfwhere
I: IntoIterator<Item = ValueType>,
pub fn with_results<I>(self, value_types: I) -> Selfwhere I: IntoIterator<Item = ValueType>,
Add multiple results to signature builder
Trait Implementations§
Auto Trait Implementations§
impl<F> RefUnwindSafe for SignatureBuilder<F>where F: RefUnwindSafe,
impl<F> Send for SignatureBuilder<F>where F: Send,
impl<F> Sync for SignatureBuilder<F>where F: Sync,
impl<F> Unpin for SignatureBuilder<F>where F: Unpin,
impl<F> UnwindSafe for SignatureBuilder<F>where F: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more