Struct parity_wasm::builder::FunctionBuilder [−][src]
Function definition builder
Implementations
impl FunctionBuilder
[src]
impl<F> FunctionBuilder<F> where
F: Invoke<FunctionDefinition>,
[src]
F: Invoke<FunctionDefinition>,
pub fn with_callback(callback: F) -> Self
[src]
New function builder with chained callback
pub fn main(self) -> Self
[src]
Set that this function is main entry point
pub fn signature(self) -> SignatureBuilder<Self>
[src]
Start signature builder of the function
pub fn with_signature(self, signature: Signature) -> Self
[src]
Override current signature entirely with new one from known struct
pub fn body(self) -> FuncBodyBuilder<Self>
[src]
Start code (body) builder
pub fn with_body(self, body: FuncBody) -> Self
[src]
Set body (code) for this function
pub fn build(self) -> F::Result
[src]
Finalize current builder spawning resulting struct in the callback
Auto Trait Implementations
impl<F> RefUnwindSafe for FunctionBuilder<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for FunctionBuilder<F> where
F: Send,
F: Send,
impl<F> Sync for FunctionBuilder<F> where
F: Sync,
F: Sync,
impl<F> Unpin for FunctionBuilder<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for FunctionBuilder<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,
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>,