pub struct SourceProvenance {
pub path: PathBuf,
pub pointer: String,
pub line: usize,
pub column: usize,
}Expand description
Exact source location preserved for a compiled declaration.
§Fields
path: Stored field onSourceProvenance.pointer: Stored field onSourceProvenance.line: Stored field onSourceProvenance.column: Stored field onSourceProvenance.
§Examples
ⓘ
let _ = std::mem::size_of::<pharos_runtime_core::application_ir::SourceProvenance>();§Related
crate::application_irfor constructors, helpers, and neighboring runtime types.
Fields§
§path: PathBuf§pointer: String§line: usize§column: usizeTrait Implementations§
Source§impl Clone for SourceProvenance
impl Clone for SourceProvenance
Source§fn clone(&self) -> SourceProvenance
fn clone(&self) -> SourceProvenance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceProvenance
impl Debug for SourceProvenance
Source§impl PartialEq for SourceProvenance
impl PartialEq for SourceProvenance
Source§fn eq(&self, other: &SourceProvenance) -> bool
fn eq(&self, other: &SourceProvenance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SourceProvenance
impl StructuralPartialEq for SourceProvenance
Auto Trait Implementations§
impl Freeze for SourceProvenance
impl RefUnwindSafe for SourceProvenance
impl Send for SourceProvenance
impl Sync for SourceProvenance
impl Unpin for SourceProvenance
impl UnsafeUnpin for SourceProvenance
impl UnwindSafe for SourceProvenance
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.