[][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

Implementations

impl Summary[src]

pub fn new(
    config: &Config,
    pkg_id: PackageId,
    dependencies: Vec<Dependency>,
    features: &BTreeMap<InternedString, Vec<InternedString>>,
    links: Option<impl Into<InternedString>>
) -> CargoResult<Summary>
[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 unstable_gate(
    &self,
    namespaced_features: bool,
    weak_dep_features: bool
) -> CargoResult<()>
[src]

Returns an error if this Summary is using an unstable feature that is not enabled.

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

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

pub fn set_checksum(&mut self, cksum: String)[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 Clone for Summary[src]

impl Debug for Summary[src]

impl Eq for Summary[src]

impl Hash for Summary[src]

impl PartialEq<Summary> for Summary[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,