Struct cargo::core::summary::Summary
[−]
[src]
pub struct Summary { // some 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>
fn package_id(&self) -> &PackageId
fn name(&self) -> &str
fn version(&self) -> &Version
fn source_id(&self) -> &SourceId
fn dependencies(&self) -> &[Dependency]
fn features(&self) -> &HashMap<String, Vec<String>>
fn override_id(self, id: PackageId) -> Summary
fn map_dependencies<F>(self, f: F) -> Summary where F: FnMut(Dependency) -> Dependency
Trait Implementations
impl Clone for Summary
[src]
fn clone(&self) -> Summary
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more