pub struct FuncAddr {
pub addr: Option<usize>,
}
Expand description
Represents the address of a function within a WebAssembly module.
Functions in WebAssembly modules can be either:
- Defined: Declared and implemented within the module.
- Imported: Declared in the module but implemented externally.
FuncAddr
provides a unified representation for both types. Internally,
the address corresponds to an index in a combined function namespace,
typically represented as a vector.
Fields§
§addr: Option<usize>
Implementations§
Trait Implementations§
source§impl PartialEq for FuncAddr
impl PartialEq for FuncAddr
impl Copy for FuncAddr
impl StructuralPartialEq for FuncAddr
Auto Trait Implementations§
impl RefUnwindSafe for FuncAddr
impl Send for FuncAddr
impl Sync for FuncAddr
impl Unpin for FuncAddr
impl UnwindSafe for FuncAddr
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