[][src]Struct runestick::debug::DebugInfo

pub struct DebugInfo {
    pub instructions: Vec<DebugInst>,
    pub functions: HashMap<Hash, DebugSignature>,
    pub functions_rev: HashMap<usize, Hash>,
}

Debug information about a unit.

Fields

instructions: Vec<DebugInst>

Debug information on each instruction.

functions: HashMap<Hash, DebugSignature>

Function signatures.

functions_rev: HashMap<usize, Hash>

Reverse lookup of a function.

Implementations

impl DebugInfo[src]

pub fn instruction_at(&self, ip: usize) -> Option<&DebugInst>[src]

Get debug instruction at the given instruction pointer.

pub fn function_at(&self, ip: usize) -> Option<(Hash, &DebugSignature)>[src]

Get the function corresponding to the given instruction pointer.

Trait Implementations

impl Debug for DebugInfo[src]

impl Default for DebugInfo[src]

impl<'de> Deserialize<'de> for DebugInfo[src]

impl Serialize for DebugInfo[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.