Struct cargo::core::summary::Summary
[−]
[src]
pub struct Summary { /* fields omitted */ }
Subset of a Manifest
. Contains only the most important informations about
a package.
Summaries are cloned, and should not be mutated after creation
Methods
impl Summary
[src]
fn new(
pkg_id: PackageId,
dependencies: Vec<Dependency>,
features: HashMap<String, Vec<String>>
) -> CargoResult<Summary>
[src]
pkg_id: PackageId,
dependencies: Vec<Dependency>,
features: HashMap<String, Vec<String>>
) -> CargoResult<Summary>
fn package_id(&self) -> &PackageId
[src]
fn name(&self) -> &str
[src]
fn version(&self) -> &Version
[src]
fn source_id(&self) -> &SourceId
[src]
fn dependencies(&self) -> &[Dependency]
[src]
fn features(&self) -> &HashMap<String, Vec<String>>
[src]
fn checksum(&self) -> Option<&str>
[src]
fn override_id(self, id: PackageId) -> Summary
[src]
fn set_checksum(self, cksum: String) -> Summary
[src]
fn map_dependencies<F>(self, f: F) -> Summary where
F: FnMut(Dependency) -> Dependency,
[src]
F: FnMut(Dependency) -> Dependency,
fn map_source(self, to_replace: &SourceId, replace_with: &SourceId) -> Summary
[src]
Trait Implementations
impl Debug for Summary
[src]
impl Clone for Summary
[src]
fn clone(&self) -> Summary
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more