Struct move_package::resolution::resolution_graph::ResolutionPackage   
source · [−]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: PackageDigest,
}Fields
resolution_graph_index: GraphIndexPointer into the ResolutionGraph.graph
source_package: SourceManifestsource manifest for this package
package_path: PathBufWhere this package is located on the filesystem
renaming: RenamingThe 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: PackageDigestThe digest of the contents of all source files and manifest under the package root
Implementations
sourceimpl ResolutionPackage<AccountAddress>
 
impl ResolutionPackage<AccountAddress>
pub fn get_sources(&self, config: &BuildConfig) -> Result<Vec<FileName>>
sourcepub fn transitive_dependencies(
    &self, 
    resolved_graph: &ResolvedGraph
) -> BTreeSet<PackageName>
 
pub fn transitive_dependencies(
    &self, 
    resolved_graph: &ResolvedGraph
) -> BTreeSet<PackageName>
Returns the transitive dependencies of this package in dependency order
pub fn immediate_dependencies(
    &self, 
    resolved_graph: &ResolvedGraph
) -> BTreeSet<PackageName>
Trait Implementations
sourceimpl<T: Clone> Clone for ResolutionPackage<T>
 
impl<T: Clone> Clone for ResolutionPackage<T>
sourcefn clone(&self) -> ResolutionPackage<T>
 
fn clone(&self) -> ResolutionPackage<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<T: Debug> Debug for ResolutionPackage<T>
 
impl<T: Debug> Debug for ResolutionPackage<T>
sourceimpl<T: PartialEq> PartialEq<ResolutionPackage<T>> for ResolutionPackage<T>
 
impl<T: PartialEq> PartialEq<ResolutionPackage<T>> for ResolutionPackage<T>
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &ResolutionPackage<T>) -> bool
 
fn ne(&self, other: &ResolutionPackage<T>) -> bool
This method tests for !=.
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
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized, 
 
impl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized, 
sourcefn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
sourceimpl<T> ToOwned for T where
    T: Clone, 
 
impl<T> ToOwned for T where
    T: Clone, 
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
 
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more