#[repr(C)]pub struct WasmFunction {
pub functionTypeIndex: U32,
pub localsDeclarations: WasmLocalsDeclarations,
pub code: Buffer,
pub start: usize,
pub hash: [c_uchar; 20],
pub exportName: *mut c_char,
}Fields§
§functionTypeIndex: U32§localsDeclarations: WasmLocalsDeclarations§code: Buffer§start: usize§hash: [c_uchar; 20]§exportName: *mut c_charImplementations§
Source§impl WasmFunction
impl WasmFunction
Sourcepub fn builder() -> WasmFunctionBuilder<((), (), (), (), (), ())>
pub fn builder() -> WasmFunctionBuilder<((), (), (), (), (), ())>
Create a builder for building WasmFunction.
On the builder, call .functionTypeIndex(...), .localsDeclarations(...), .code(...), .start(...), .hash(...), .exportName(...) to set the values of the fields.
Finally, call .build() to create the instance of WasmFunction.
Trait Implementations§
Source§impl Clone for WasmFunction
impl Clone for WasmFunction
Source§fn clone(&self) -> WasmFunction
fn clone(&self) -> WasmFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConstDefault for WasmFunctionwhere
U32: ConstDefault,
WasmLocalsDeclarations: ConstDefault,
Buffer: ConstDefault,
usize: ConstDefault,
[c_uchar; 20]: ConstDefault,
*mut c_char: ConstDefault,
impl ConstDefault for WasmFunctionwhere
U32: ConstDefault,
WasmLocalsDeclarations: ConstDefault,
Buffer: ConstDefault,
usize: ConstDefault,
[c_uchar; 20]: ConstDefault,
*mut c_char: ConstDefault,
Source§impl Debug for WasmFunction
impl Debug for WasmFunction
Source§impl Hash for WasmFunction
impl Hash for WasmFunction
impl Copy for WasmFunction
Auto Trait Implementations§
impl Freeze for WasmFunction
impl RefUnwindSafe for WasmFunction
impl !Send for WasmFunction
impl !Sync for WasmFunction
impl Unpin for WasmFunction
impl UnwindSafe for WasmFunction
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