pub struct DebugMetadata {
pub func_info: Map<FuncIndex, ()>,
pub inst_info: Map<FuncIndex, ()>,
pub stack_slot_offsets: Map<FuncIndex, Vec<Option<i32>>>,
pub pointers: Vec<(*const u8, usize)>,
}
Expand description
Useful information for debugging gathered by compiling a Wasm module.
Fields§
§func_info: Map<FuncIndex, ()>
[CompiledFunctionData
] in FuncIndex
order
inst_info: Map<FuncIndex, ()>
[ValueLabelsRangesInner
] in FuncIndex
order
stack_slot_offsets: Map<FuncIndex, Vec<Option<i32>>>
Stack slot offsets in FuncIndex
order
pointers: Vec<(*const u8, usize)>
function pointers and their lengths
Trait Implementations§
Source§impl Clone for DebugMetadata
impl Clone for DebugMetadata
Source§fn clone(&self) -> DebugMetadata
fn clone(&self) -> DebugMetadata
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 moreAuto Trait Implementations§
impl Freeze for DebugMetadata
impl RefUnwindSafe for DebugMetadata
impl !Send for DebugMetadata
impl !Sync for DebugMetadata
impl Unpin for DebugMetadata
impl UnwindSafe for DebugMetadata
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