Struct pdb::LineProgram[][src]

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

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

Implementations

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

pub fn lines(&self) -> LineIterator<'a>[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 files(&self) -> FileIterator<'a>[src]

Returns an iterator over all file records of this module.

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> RefUnwindSafe for LineProgram<'a>

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

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

impl<'a> Unpin for LineProgram<'a>

impl<'a> UnwindSafe for LineProgram<'a>

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.