Struct gear_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
Trait Implementations§
Auto Trait Implementations§
impl<F> RefUnwindSafe for FunctionBuilder<F>where
F: RefUnwindSafe,
impl<F> Send for FunctionBuilder<F>where
F: Send,
impl<F> Sync for FunctionBuilder<F>where
F: Sync,
impl<F> Unpin for FunctionBuilder<F>where
F: Unpin,
impl<F> UnwindSafe for FunctionBuilder<F>where
F: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more