Struct symbolic::debuginfo::sourcebundle::SourceBundleDebugSession [−][src]
pub struct SourceBundleDebugSession<'data> { /* fields omitted */ }
Expand description
Debug session for SourceBundle objects.
Implementations
pub fn files(&self) -> SourceBundleFileIterator<'_>ⓘNotable traits for SourceBundleFileIterator<'s>impl<'s> Iterator for SourceBundleFileIterator<'s> type Item = Result<FileEntry<'s>, SourceBundleError>;
pub fn files(&self) -> SourceBundleFileIterator<'_>ⓘNotable traits for SourceBundleFileIterator<'s>impl<'s> Iterator for SourceBundleFileIterator<'s> type Item = Result<FileEntry<'s>, SourceBundleError>;
impl<'s> Iterator for SourceBundleFileIterator<'s> type Item = Result<FileEntry<'s>, SourceBundleError>;
Returns an iterator over all source files in this debug file.
Returns an iterator over all functions in this debug file.
Looks up a file’s source contents by its full canonicalized path.
The given path must be canonicalized.
Trait Implementations
type Error = SourceBundleError
type Error = SourceBundleError
The error returned when reading debug information fails.
type FunctionIterator = Empty<Result<Function<'session>, SourceBundleError>>
type FunctionIterator = Empty<Result<Function<'session>, SourceBundleError>>
An iterator over all functions in this debug file.
type FileIterator = SourceBundleFileIterator<'session>
type FileIterator = SourceBundleFileIterator<'session>
An iterator over all source files referenced by this debug file.
pub fn functions(
&'session self
) -> <SourceBundleDebugSession<'data> as DebugSession<'session>>::FunctionIterator
pub fn functions(
&'session self
) -> <SourceBundleDebugSession<'data> as DebugSession<'session>>::FunctionIterator
Returns an iterator over all functions in this debug file. Read more
pub fn files(
&'session self
) -> <SourceBundleDebugSession<'data> as DebugSession<'session>>::FileIterator
pub fn files(
&'session self
) -> <SourceBundleDebugSession<'data> as DebugSession<'session>>::FileIterator
Returns an iterator over all source files referenced by this debug file.
pub fn source_by_path(
&self,
path: &str
) -> Result<Option<Cow<'_, str>>, <SourceBundleDebugSession<'data> as DebugSession<'session>>::Error>
pub fn source_by_path(
&self,
path: &str
) -> Result<Option<Cow<'_, str>>, <SourceBundleDebugSession<'data> as DebugSession<'session>>::Error>
Looks up a file’s source contents by its full canonicalized path. Read more
Auto Trait Implementations
impl<'data> !RefUnwindSafe for SourceBundleDebugSession<'data>
impl<'data> Send for SourceBundleDebugSession<'data>
impl<'data> !Sync for SourceBundleDebugSession<'data>
impl<'data> Unpin for SourceBundleDebugSession<'data>
impl<'data> !UnwindSafe for SourceBundleDebugSession<'data>
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
pub fn extract_context(self, _original_input: I)
pub fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more
pub fn recreate_context(_original_input: I, tail: I) -> I
pub fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more