Struct tetsy_wasm::builder::SignatureBuilder [−][src]
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(mut self: Self, value_type: ValueType) -> Self
[src]
Add argument to signature builder
pub fn with_params(mut self: Self, value_types: Vec<ValueType>) -> Self
[src]
Add multiple arguments to signature builder
pub fn param(self) -> ValueTypeBuilder<Self>
[src]
Start build new argument
pub fn params(self) -> ValueTypesBuilder<Self>
[src]
Start build multiple arguments
pub fn with_result(mut self: Self, value_type: ValueType) -> Self
[src]
Add result to signature builder
pub fn with_results(mut self: Self, value_types: Vec<ValueType>) -> Self
[src]
Add multiple results to signature builder
pub fn result(self) -> ValueTypeBuilder<Self>
[src]
Start building new result
pub fn results(self) -> ValueTypeBuilder<Self>
[src]
Start building multiple results
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,
[src]
F: RefUnwindSafe,
impl<F> Send for SignatureBuilder<F> where
F: Send,
[src]
F: Send,
impl<F> Sync for SignatureBuilder<F> where
F: Sync,
[src]
F: Sync,
impl<F> Unpin for SignatureBuilder<F> where
F: Unpin,
[src]
F: Unpin,
impl<F> UnwindSafe for SignatureBuilder<F> where
F: UnwindSafe,
[src]
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,
pub 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.
pub 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>,