Struct symbolic_symcache::SourceLocation
source · pub struct SourceLocation<'data, 'cache> { /* private fields */ }
Expand description
A source location as included in the SymCache.
A SourceLocation
represents source information about a particular instruction.
It always has a [Function]
associated with it and may also have a [File]
and a line number.
Implementations§
Trait Implementations§
source§impl<'data, 'cache> Clone for SourceLocation<'data, 'cache>
impl<'data, 'cache> Clone for SourceLocation<'data, 'cache>
source§fn clone(&self) -> SourceLocation<'data, 'cache>
fn clone(&self) -> SourceLocation<'data, 'cache>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'data, 'cache> Debug for SourceLocation<'data, 'cache>
impl<'data, 'cache> Debug for SourceLocation<'data, 'cache>
source§impl<'data, 'cache> PartialEq<SourceLocation<'data, 'cache>> for SourceLocation<'data, 'cache>
impl<'data, 'cache> PartialEq<SourceLocation<'data, 'cache>> for SourceLocation<'data, 'cache>
source§fn eq(&self, other: &SourceLocation<'data, 'cache>) -> bool
fn eq(&self, other: &SourceLocation<'data, 'cache>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'data, 'cache> Eq for SourceLocation<'data, 'cache>
impl<'data, 'cache> StructuralEq for SourceLocation<'data, 'cache>
impl<'data, 'cache> StructuralPartialEq for SourceLocation<'data, 'cache>
Auto Trait Implementations§
impl<'data, 'cache> RefUnwindSafe for SourceLocation<'data, 'cache>
impl<'data, 'cache> Send for SourceLocation<'data, 'cache>
impl<'data, 'cache> Sync for SourceLocation<'data, 'cache>
impl<'data, 'cache> Unpin for SourceLocation<'data, 'cache>
impl<'data, 'cache> UnwindSafe for SourceLocation<'data, 'cache>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
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