[][src]Struct cargo::core::summary::Summary

pub struct Summary { /* fields omitted */ }

Subset of a Manifest. Contains only the most important information about a package.

Summaries are cloned, and should not be mutated after creation

Methods

impl Summary
[src]

pub fn new<K>(
    pkg_id: PackageId,
    dependencies: Vec<Dependency>,
    features: &BTreeMap<K, Vec<impl AsRef<str>>>,
    links: Option<impl AsRef<str>>,
    namespaced_features: bool
) -> CargoResult<Summary> where
    K: Borrow<str> + Ord + Display
[src]

pub fn package_id(&self) -> PackageId
[src]

pub fn name(&self) -> InternedString
[src]

pub fn version(&self) -> &Version
[src]

pub fn source_id(&self) -> SourceId
[src]

pub fn dependencies(&self) -> &[Dependency]
[src]

pub fn features(&self) -> &FeatureMap
[src]

pub fn checksum(&self) -> Option<&str>
[src]

pub fn namespaced_features(&self) -> bool
[src]

pub fn override_id(self, id: PackageId) -> Summary
[src]

pub fn set_checksum(self, cksum: String) -> Summary
[src]

pub fn map_dependencies<F>(self, f: F) -> Summary where
    F: FnMut(Dependency) -> Dependency
[src]

pub fn map_source(self, to_replace: SourceId, replace_with: SourceId) -> Summary
[src]

Trait Implementations

impl PartialEq<Summary> for Summary
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for Summary
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Summary
[src]

Auto Trait Implementations

impl !Send for Summary

impl !Sync for Summary

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self