[][src]Struct pdb::LineProgram

pub struct LineProgram<'a> { /* fields omitted */ }

The LineProgram provides access to source line information for a module and its procedures.

Methods

impl<'a> LineProgram<'a>[src]

pub fn lines(&self) -> LineIterator[src]

Returns an iterator over all line information records of this module.

Note that line records are not guaranteed to be ordered by source code offset. If a monotonic order by PdbInternalSectionOffset or Rva is required, the lines have to be sorted manually.

pub fn lines_at_offset(&self, offset: PdbInternalSectionOffset) -> LineIterator[src]

Returns an iterator over line records for the given section offset.

This does not work with any arbitrary section offset. The iterator only returns lines if the section offset is the start of a line block. This is true for procedure or symbol offsets that specify line information. For all other offsets, the iterator will be empty.

Note that line records are not guaranteed to be ordered by source code offset. If a monotonic order by PdbInternalSectionOffset or Rva is required, the lines have to be sorted manually.

pub fn get_file_info(&self, offset: FileIndex) -> Result<FileInfo<'a>>[src]

Looks up file information for the specified file.

Auto Trait Implementations

impl<'a> Send for LineProgram<'a>

impl<'a> Sync for LineProgram<'a>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.