Struct parity_wasm::builder::SignatureBuilder
source · pub struct SignatureBuilder<F = Identity> { /* private fields */ }
Expand description
Signature builder
Implementations
sourceimpl<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_return_type(self, return_type: Option<ValueType>) -> Self
pub fn with_return_type(self, return_type: Option<ValueType>) -> Self
Override signature return type
sourcepub fn return_type(self) -> OptionalValueTypeBuilder<Self>
pub fn return_type(self) -> OptionalValueTypeBuilder<Self>
Start building return type
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more