Enum symbolic_debuginfo::ObjectDebugSession [−][src]
A generic debugging session.
Variants
Breakpad(BreakpadDebugSession<'d>)
Dwarf(DwarfDebugSession<'d>)
Pdb(PdbDebugSession<'d>)
Pe(PeDebugSession<'d>)
SourceBundle(SourceBundleDebugSession<'d>)
Implementations
impl<'d> ObjectDebugSession<'d>
[src]
pub fn functions(&self) -> ObjectFunctionIterator<'_>ⓘNotable traits for ObjectFunctionIterator<'s>
impl<'s> Iterator for ObjectFunctionIterator<'s> type Item = Result<Function<'s>, ObjectError>;
[src]
Notable traits for ObjectFunctionIterator<'s>
impl<'s> Iterator for ObjectFunctionIterator<'s> type Item = Result<Function<'s>, ObjectError>;
Returns an iterator over all functions in this debug file.
Functions are iterated in the order they are declared in their compilation units. The functions yielded by this iterator include all inlinees and line records resolved.
Note that the iterator holds a mutable borrow on the debug session, which allows it to use caches and optimize resources while resolving function and line information.
pub fn files(&self) -> ObjectFileIterator<'_>ⓘNotable traits for ObjectFileIterator<'s>
impl<'s> Iterator for ObjectFileIterator<'s> type Item = Result<FileEntry<'s>, ObjectError>;
[src]
Notable traits for ObjectFileIterator<'s>
impl<'s> Iterator for ObjectFileIterator<'s> type Item = Result<FileEntry<'s>, ObjectError>;
Returns an iterator over all source files referenced by this debug file.
pub fn source_by_path(
&self,
path: &str
) -> Result<Option<Cow<'_, str>>, ObjectError>
[src]
&self,
path: &str
) -> Result<Option<Cow<'_, str>>, ObjectError>
Looks up a file’s source contents by its full canonicalized path.
The given path must be canonicalized.
Trait Implementations
impl<'session> DebugSession<'session> for ObjectDebugSession<'_>
[src]
type Error = ObjectError
The error returned when reading debug information fails.
type FunctionIterator = ObjectFunctionIterator<'session>
An iterator over all functions in this debug file.
type FileIterator = ObjectFileIterator<'session>
An iterator over all source files referenced by this debug file.
fn functions(&'session self) -> Self::FunctionIterator
[src]
fn files(&'session self) -> Self::FileIterator
[src]
fn source_by_path(
&self,
path: &str
) -> Result<Option<Cow<'_, str>>, Self::Error>
[src]
&self,
path: &str
) -> Result<Option<Cow<'_, str>>, Self::Error>
Auto Trait Implementations
impl<'d> !RefUnwindSafe for ObjectDebugSession<'d>
impl<'d> !Send for ObjectDebugSession<'d>
impl<'d> !Sync for ObjectDebugSession<'d>
impl<'d> Unpin for ObjectDebugSession<'d>
impl<'d> !UnwindSafe for ObjectDebugSession<'d>
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>,