Struct parity_wasm::builder::FunctionBuilder
source · pub struct FunctionBuilder<F = Identity> { /* private fields */ }
Expand description
Function definition builder
Implementations§
source§impl<F> FunctionBuilder<F>where
F: Invoke<FunctionDefinition>,
impl<F> FunctionBuilder<F>where
F: Invoke<FunctionDefinition>,
sourcepub fn with_callback(callback: F) -> Self
pub fn with_callback(callback: F) -> Self
New function builder with chained callback
sourcepub fn signature(self) -> SignatureBuilder<Self>
pub fn signature(self) -> SignatureBuilder<Self>
Start signature builder of the function
sourcepub fn with_signature(self, signature: Signature) -> Self
pub fn with_signature(self, signature: Signature) -> Self
Override current signature entirely with new one from known struct
sourcepub fn body(self) -> FuncBodyBuilder<Self>
pub fn body(self) -> FuncBodyBuilder<Self>
Start code (body) builder