Struct pdb::LineProgram [−][src]
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]
&self,
offset: PdbInternalSectionOffset
) -> LineIterator<'_>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,