[][src]Struct parity_wasm::builder::SignatureBuilder

pub struct SignatureBuilder<F = Identity> { /* fields omitted */ }

Signature builder

Methods

impl SignatureBuilder[src]

pub fn new() -> Self[src]

New signature builder

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> Send for SignatureBuilder<F> where
    F: Send

impl<F> Sync for SignatureBuilder<F> where
    F: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]