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

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 PartialEq for Summary

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

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

Derived Implementations

impl Clone for Summary

fn clone(&self) -> Summary

fn clone_from(&mut self, source: &Self)

impl Debug for Summary

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