pub struct Provenance {
pub path: String,
pub span: Span,
pub macro_chain: Vec<ProvenanceMacro>,
}Expand description
Where a node of the model was written (Preprocessed::provenance).
Fields§
§path: StringThe file’s path, as the preprocessor recorded it.
span: SpanThe range in that file’s text.
macro_chain: Vec<ProvenanceMacro>The macro expansions that produced the text, outermost first.
Trait Implementations§
Source§impl Clone for Provenance
impl Clone for Provenance
Source§impl Debug for Provenance
impl Debug for Provenance
impl Eq for Provenance
Source§impl PartialEq for Provenance
impl PartialEq for Provenance
impl StructuralPartialEq for Provenance
Auto Trait Implementations§
impl Freeze for Provenance
impl RefUnwindSafe for Provenance
impl Send for Provenance
impl Sync for Provenance
impl Unpin for Provenance
impl UnsafeUnpin for Provenance
impl UnwindSafe for Provenance
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