pub struct TraceProvenance { /* private fields */ }Expand description
Which configs name which files and which dependency names, collected by one analysis for the trace output.
It holds plain data, so a trace looks a file up without the rules that produced it.
Implementations§
Source§impl TraceProvenance
impl TraceProvenance
Sourcepub fn push_file(&mut self, file: PathBuf, source: TraceSource)
pub fn push_file(&mut self, file: PathBuf, source: TraceSource)
Record that source names the root-relative file.
Sourcepub fn push_dependency(&mut self, name: String, source: TraceSource)
pub fn push_dependency(&mut self, name: String, source: TraceSource)
Record that source names the dependency name.
Sourcepub fn file_sources(&self, file: &Path) -> Vec<TraceSource>
pub fn file_sources(&self, file: &Path) -> Vec<TraceSource>
The configs that name file, a root-relative path.
Sourcepub fn dependency_sources(&self, name: &str) -> Vec<TraceSource>
pub fn dependency_sources(&self, name: &str) -> Vec<TraceSource>
The configs that name the dependency name.
Trait Implementations§
Source§impl Clone for TraceProvenance
impl Clone for TraceProvenance
Source§impl Debug for TraceProvenance
impl Debug for TraceProvenance
Source§impl Default for TraceProvenance
impl Default for TraceProvenance
impl Eq for TraceProvenance
Source§impl PartialEq for TraceProvenance
impl PartialEq for TraceProvenance
impl StructuralPartialEq for TraceProvenance
Auto Trait Implementations§
impl Freeze for TraceProvenance
impl RefUnwindSafe for TraceProvenance
impl Send for TraceProvenance
impl Sync for TraceProvenance
impl Unpin for TraceProvenance
impl UnsafeUnpin for TraceProvenance
impl UnwindSafe for TraceProvenance
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.