[−][src]Struct parity_wasm::builder::SignatureBuilder
Signature builder
Implementations
impl SignatureBuilder
[src]
impl<F> SignatureBuilder<F> where
F: Invoke<FunctionType>,
[src]
F: Invoke<FunctionType>,
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,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,