[][src]Struct runestick::DebugInfo

pub struct DebugInfo {
    pub sources: Vec<Source>,
    pub instructions: Vec<DebugInst>,
}

Debug information about a unit.

Fields

sources: Vec<Source>

File ids to source files.

instructions: Vec<DebugInst>

Debug information on each instruction.

Implementations

impl DebugInfo[src]

pub fn source_at(&self, source_id: usize) -> Option<&Source>[src]

Get the source for the given source id.

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

Get debug instruction at the given instruction pointer.

pub fn insert_source(&mut self, source: Source) -> usize[src]

Insert a source.

pub fn sources(&self) -> impl Iterator<Item = (usize, &Source)>[src]

Iterate over all sources.

Trait Implementations

impl Debug for DebugInfo[src]

impl Default 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> 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,