Struct wasm::execution::value::ExternAddr
source · pub struct ExternAddr {
pub addr: Option<usize>,
}
Expand description
Represents the address of an external reference in the interpreter.
External references are managed at the interpreter level and are not part of the WebAssembly module itself. They are typically used to refer to host functions or objects that interact with the module.
Internally, ExternAddr
corresponds to an index in a linear vector,
enabling dynamic storage and retrieval of external values.
Fields§
§addr: Option<usize>
Implementations§
Trait Implementations§
source§impl Clone for ExternAddr
impl Clone for ExternAddr
source§fn clone(&self) -> ExternAddr
fn clone(&self) -> ExternAddr
Returns a copy 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 Debug for ExternAddr
impl Debug for ExternAddr
source§impl Default for ExternAddr
impl Default for ExternAddr
source§impl PartialEq for ExternAddr
impl PartialEq for ExternAddr
source§fn eq(&self, other: &ExternAddr) -> bool
fn eq(&self, other: &ExternAddr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ExternAddr
impl StructuralPartialEq for ExternAddr
Auto Trait Implementations§
impl RefUnwindSafe for ExternAddr
impl Send for ExternAddr
impl Sync for ExternAddr
impl Unpin for ExternAddr
impl UnwindSafe for ExternAddr
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