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
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more