[][src]Struct wasm_debug::types::ModuleVmctxInfo

pub struct ModuleVmctxInfo {
    pub memory_offset: i64,
    pub vmctx_size: i64,
    pub stack_slot_offsets: PrimaryMap<DefinedFuncIndex, Vec<Option<i32>>>,
}

Information about the module and VM context.

Fields

memory_offset: i64

Offset from the VMCtx where a pointer to memory can be found.

Assume memory 0 for now.

vmctx_size: i64

The size of the VMCtx struct

stack_slot_offsets: PrimaryMap<DefinedFuncIndex, Vec<Option<i32>>>

The offsets of the stack slots for each function.

Methods

impl ModuleVmctxInfo[src]

pub fn new<'a, I>(
    memory_offset: i64,
    vmctx_size: i64,
    stack_slot_offsets: I
) -> Self where
    I: Iterator<Item = &'a Vec<Option<i32>>>, 
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.