pub struct FunctionAddressMap {
pub instructions: Box<[InstructionAddressMap]>,
pub start_srcloc: FilePos,
pub end_srcloc: FilePos,
pub body_offset: usize,
pub body_len: u32,
}
Expand description
Metadata to translate from binary offsets back to the original location found in the wasm input.
Fields§
§instructions: Box<[InstructionAddressMap]>
An array of data for the instructions in this function, indicating where each instruction maps back to in the original function.
This array is sorted least-to-greatest by the code_offset
field.
Additionally the span of each InstructionAddressMap
is implicitly the
gap between it and the next item in the array.
start_srcloc: FilePos
Function’s initial offset in the source file, specified in bytes from the front of the file.
end_srcloc: FilePos
Function’s end offset in the source file, specified in bytes from the front of the file.
body_offset: usize
Generated function body offset if applicable, otherwise 0.
body_len: u32
Generated function body length.
Trait Implementations§
source§impl Clone for FunctionAddressMap
impl Clone for FunctionAddressMap
source§fn clone(&self) -> FunctionAddressMap
fn clone(&self) -> FunctionAddressMap
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 FunctionAddressMap
impl Debug for FunctionAddressMap
source§impl Default for FunctionAddressMap
impl Default for FunctionAddressMap
source§fn default() -> FunctionAddressMap
fn default() -> FunctionAddressMap
Returns the “default value” for a type. Read more
source§impl PartialEq for FunctionAddressMap
impl PartialEq for FunctionAddressMap
source§fn eq(&self, other: &FunctionAddressMap) -> bool
fn eq(&self, other: &FunctionAddressMap) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FunctionAddressMap
impl StructuralPartialEq for FunctionAddressMap
Auto Trait Implementations§
impl Freeze for FunctionAddressMap
impl RefUnwindSafe for FunctionAddressMap
impl Send for FunctionAddressMap
impl Sync for FunctionAddressMap
impl Unpin for FunctionAddressMap
impl UnwindSafe for FunctionAddressMap
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.