pub struct Summary {
inner: Rc<Inner>,
}
Expand description
Subset of a Manifest
. Contains only the most important information about
a package.
Summaries are cloned, and should not be mutated after creation
Fields§
§inner: Rc<Inner>
Implementations§
source§impl Summary
impl Summary
pub fn new( pkg_id: PackageId, dependencies: Vec<Dependency>, features: &BTreeMap<InternedString, Vec<InternedString>>, links: Option<impl Into<InternedString>>, rust_version: Option<RustVersion> ) -> CargoResult<Summary>
pub fn package_id(&self) -> PackageId
pub fn name(&self) -> InternedString
pub fn version(&self) -> &Version
pub fn source_id(&self) -> SourceId
pub fn dependencies(&self) -> &[Dependency]
pub fn features(&self) -> &FeatureMap
pub fn checksum(&self) -> Option<&str>
pub fn links(&self) -> Option<InternedString>
pub fn rust_version(&self) -> Option<&RustVersion>
pub fn override_id(self, id: PackageId) -> Summary
pub fn set_checksum(&mut self, cksum: String)
pub fn map_dependencies<F>(self, f: F) -> Summarywhere F: FnMut(Dependency) -> Dependency,
pub fn map_source(self, to_replace: SourceId, replace_with: SourceId) -> Summary
Trait Implementations§
source§impl<'s> From<&'s Summary> for Dependency
impl<'s> From<&'s Summary> for Dependency
source§impl<'s> From<&'s Summary> for DependencyUI
impl<'s> From<&'s Summary> for DependencyUI
source§impl From<Summary> for Dependency
impl From<Summary> for Dependency
source§impl PartialEq<Summary> for Summary
impl PartialEq<Summary> for Summary
impl Eq for Summary
Auto Trait Implementations§
impl RefUnwindSafe for Summary
impl !Send for Summary
impl !Sync for Summary
impl Unpin for Summary
impl UnwindSafe for Summary
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes