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_config_export(&mut self, file: PathBuf, name: String)
pub fn push_config_export(&mut self, file: PathBuf, name: String)
Record that a framework plugin reads the export name of the
root-relative file as configuration.
Sourcepub fn is_config_export(&self, file: &Path, name: &str) -> bool
pub fn is_config_export(&self, file: &Path, name: &str) -> bool
Whether a framework plugin reads the export name of the
root-relative file as configuration.
Sourcepub fn push_export_credits(
&mut self,
file: PathBuf,
credits: impl IntoIterator<Item = (String, PluginExportCredit)>,
)
pub fn push_export_credits( &mut self, file: PathBuf, credits: impl IntoIterator<Item = (String, PluginExportCredit)>, )
Record the plugin rules that mark exports of the root-relative file
as used, as pairs of an export name and a credit.
Sourcepub fn export_credits(&self, file: &Path, name: &str) -> Vec<PluginExportCredit>
pub fn export_credits(&self, file: &Path, name: &str) -> Vec<PluginExportCredit>
The plugin rules that mark the export name of the root-relative
file as used.
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.
Sourcepub fn push_tooling_credit(&mut self, name: String, credit: ToolingCredit)
pub fn push_tooling_credit(&mut self, name: String, credit: ToolingCredit)
Record why the dependency name is credited as tooling. The first
credit recorded for a name wins.
Sourcepub fn tooling_credit(&self, name: &str) -> Option<ToolingCredit>
pub fn tooling_credit(&self, name: &str) -> Option<ToolingCredit>
Why the dependency name is credited as tooling, if it is.
Sourcepub fn with_peer_seeds(self, seeds: PeerClosureSeeds) -> TraceProvenance
pub fn with_peer_seeds(self, seeds: PeerClosureSeeds) -> TraceProvenance
Set the packages that start the peer-dependency closure in addition to the imported packages.
Sourcepub const fn peer_seeds(&self) -> &PeerClosureSeeds
pub const fn peer_seeds(&self) -> &PeerClosureSeeds
The packages that start the peer-dependency closure in addition to the imported packages.
Trait Implementations§
Source§impl Clone for TraceProvenance
impl Clone for TraceProvenance
Source§fn clone(&self) -> TraceProvenance
fn clone(&self) -> TraceProvenance
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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
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
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> ⓘ
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> ⓘ
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