Struct pdb::LineProgram
source · [−]pub struct LineProgram<'a> { /* private fields */ }
Expand description
The LineProgram
provides access to source line information for a module and its procedures.
Implementations
sourceimpl<'a> LineProgram<'a>
impl<'a> LineProgram<'a>
sourcepub fn lines(&self) -> LineIterator<'_>
pub fn lines(&self) -> LineIterator<'_>
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.
sourcepub fn files(&self) -> FileIterator<'a>
pub fn files(&self) -> FileIterator<'a>
Returns an iterator over all file records of this module.
sourcepub fn lines_for_symbol(
&self,
offset: PdbInternalSectionOffset
) -> LineIterator<'_>
pub fn lines_for_symbol(
&self,
offset: PdbInternalSectionOffset
) -> LineIterator<'_>
Returns an iterator over line records for a symbol at the given section offset.
This may return line records before the start offset of the symbol. When using ASM,
specifically MASM, symbol records may specify a range that is smaller than the actual
code generated for this function. lines_for_symbol
returns all line records covering this
function, potentially exceeding this range.
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.
sourcepub fn get_file_info(&self, offset: FileIndex) -> Result<FileInfo<'a>>
pub fn get_file_info(&self, offset: FileIndex) -> Result<FileInfo<'a>>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more