Struct parity_wasm::builder::SignatureBuilder [−][src]
pub struct SignatureBuilder<F = Identity> { /* fields omitted */ }
Signature builder
Implementations
impl<F> SignatureBuilder<F> where
F: Invoke<FunctionType>,
[src]
impl<F> SignatureBuilder<F> where
F: Invoke<FunctionType>,
[src]pub fn with_callback(callback: F) -> Self
[src]
New builder with callback function specified
pub fn with_param(self, value_type: ValueType) -> Self
[src]
Add argument to signature builder
pub fn with_params(self, value_types: Vec<ValueType>) -> Self
[src]
Add multiple arguments to signature builder
pub fn with_return_type(self, return_type: Option<ValueType>) -> Self
[src]
Override signature return type
pub fn param(self) -> ValueTypeBuilder<Self>
[src]
Start build new argument
pub fn params(self) -> ValueTypesBuilder<Self>
[src]
Start build multiple arguments
pub fn return_type(self) -> OptionalValueTypeBuilder<Self>
[src]
Start building return type
pub fn build(self) -> F::Result
[src]
Finish current builder
pub fn build_sig(self) -> Signature
[src]
Finish current builder returning intermediate Signature
struct
Auto Trait Implementations
impl<F> RefUnwindSafe for SignatureBuilder<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for SignatureBuilder<F> where
F: Send,
F: Send,
impl<F> Sync for SignatureBuilder<F> where
F: Sync,
F: Sync,
impl<F> Unpin for SignatureBuilder<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for SignatureBuilder<F> where
F: UnwindSafe,
F: UnwindSafe,