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§
impl Copy for FuncAddr
impl StructuralPartialEq for FuncAddr
Auto Trait Implementations§
impl Freeze for FuncAddr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)