[−][src]Struct parity_wasm::builder::SignatureBuilder
Signature builder
Methods
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> Send for SignatureBuilder<F> where
F: Send,
F: Send,
impl<F> Sync for SignatureBuilder<F> where
F: Sync,
F: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Rfn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut R
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,