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: FilePosFunction’s initial offset in the source file, specified in bytes from the front of the file.
end_srcloc: FilePosFunction’s end offset in the source file, specified in bytes from the front of the file.
body_offset: usizeGenerated function body offset if applicable, otherwise 0.
body_len: u32Generated 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 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 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
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.