Struct parity_wasm::builder::FunctionBuilder [−][src]
pub struct FunctionBuilder<F = Identity> { /* fields omitted */ }
Function definition builder
Methods
impl FunctionBuilder[src]
impl FunctionBuilderimpl<F> FunctionBuilder<F> where
F: Invoke<FunctionDefinition>, [src]
impl<F> FunctionBuilder<F> where
F: Invoke<FunctionDefinition>, pub fn with_callback(callback: F) -> Self[src]
pub fn with_callback(callback: F) -> SelfNew function builder with chained callback
pub fn main(self) -> Self[src]
pub fn main(self) -> SelfSet that this function is main entry point
pub fn signature(self) -> SignatureBuilder<Self>[src]
pub fn signature(self) -> SignatureBuilder<Self>Start signature builder of the function
pub fn with_signature(self, signature: Signature) -> Self[src]
pub fn with_signature(self, signature: Signature) -> SelfOverride current signature entirely with new one from known struct
pub fn body(self) -> FuncBodyBuilder<Self>[src]
pub fn body(self) -> FuncBodyBuilder<Self>Start code (body) builder
pub fn with_body(self, body: FuncBody) -> Self[src]
pub fn with_body(self, body: FuncBody) -> SelfSet body (code) for this function
pub fn build(self) -> F::Result[src]
pub fn build(self) -> F::ResultFinalize current builder spawning resulting struct in the callback
Auto Trait Implementations
impl<F> Send for FunctionBuilder<F> where
F: Send,
impl<F> Send for FunctionBuilder<F> where
F: Send, impl<F> Sync for FunctionBuilder<F> where
F: Sync,
impl<F> Sync for FunctionBuilder<F> where
F: Sync,