pub struct ResolutionPackage<T> {
pub resolution_graph_index: GraphIndex,
pub source_package: SourceManifest,
pub package_path: PathBuf,
pub renaming: Renaming,
pub resolution_table: BTreeMap<NamedAddress, T>,
pub source_digest: String,
}
Fields§
§resolution_graph_index: GraphIndex
Pointer into the ResolutionGraph.graph
source_package: SourceManifest
source manifest for this package
package_path: PathBuf
Where this package is located on the filesystem
renaming: Renaming
The renaming of addresses performed by this package
resolution_table: BTreeMap<NamedAddress, T>
The mapping of addresses for this package (and that are in scope for it)
source_digest: String
The digest of the contents of all files under the package root
Implementations§
source§impl ResolutionPackage<AccountAddress>
impl ResolutionPackage<AccountAddress>
pub fn get_sources(&self, config: &BuildConfig) -> Result<Vec<FileName>>
sourcepub fn transitive_dependencies(
&self,
resolved_graph: &ResolvedGraph
) -> Vec<PackageName> ⓘ
pub fn transitive_dependencies( &self, resolved_graph: &ResolvedGraph ) -> Vec<PackageName> ⓘ
Returns the transitive dependencies of this package in dependency order
Trait Implementations§
source§impl<T: Clone> Clone for ResolutionPackage<T>
impl<T: Clone> Clone for ResolutionPackage<T>
source§fn clone(&self) -> ResolutionPackage<T>
fn clone(&self) -> ResolutionPackage<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for ResolutionPackage<T>
impl<T: Debug> Debug for ResolutionPackage<T>
source§impl<T: PartialEq> PartialEq<ResolutionPackage<T>> for ResolutionPackage<T>
impl<T: PartialEq> PartialEq<ResolutionPackage<T>> for ResolutionPackage<T>
source§fn eq(&self, other: &ResolutionPackage<T>) -> bool
fn eq(&self, other: &ResolutionPackage<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for ResolutionPackage<T>
impl<T> StructuralEq for ResolutionPackage<T>
impl<T> StructuralPartialEq for ResolutionPackage<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ResolutionPackage<T>where T: RefUnwindSafe,
impl<T> Send for ResolutionPackage<T>where T: Send,
impl<T> Sync for ResolutionPackage<T>where T: Sync,
impl<T> Unpin for ResolutionPackage<T>
impl<T> UnwindSafe for ResolutionPackage<T>where T: RefUnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.