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§fn clone(&self) -> TraceProvenance
fn clone(&self) -> TraceProvenance
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 TraceProvenance
impl Debug for TraceProvenance
Source§impl Default for TraceProvenance
impl Default for TraceProvenance
Source§fn default() -> TraceProvenance
fn default() -> TraceProvenance
Returns the “default value” for a type. Read more
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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§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> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more