[−][src]Struct cargo::core::summary::Summary
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]
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,
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 links(&self) -> Option<InternedString>
[src]
pub fn namespaced_features(&self) -> bool
[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]
F: FnMut(Dependency) -> Dependency,
pub fn map_source(self, to_replace: SourceId, replace_with: SourceId) -> Summary
[src]
Trait Implementations
impl PartialEq<Summary> for Summary
[src]
fn eq(&self, other: &Summary) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Summary
[src]
impl Clone for Summary
[src]
fn clone(&self) -> Summary
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Hash for Summary
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Summary
[src]
Auto Trait Implementations
impl !Send for Summary
impl Unpin for Summary
impl !Sync for Summary
impl !UnwindSafe for Summary
impl !RefUnwindSafe for Summary
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self