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<StringVec<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<StringVec<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

impl Debug for Summary
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialEq for Summary
[src]

fn eq(&self, other: &Summary) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.