pub struct Summary {
inner: Arc<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: Arc<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) -> Summary
pub fn try_map_dependencies<F>(self, f: F) -> CargoResult<Summary>
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
impl Eq for Summary
Auto Trait Implementations§
impl Freeze for Summary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§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>,
§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