Struct cargo::core::summary::Summary [−][src]
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<K>(
pkg_id: PackageId,
dependencies: Vec<Dependency>,
features: &BTreeMap<K, Vec<impl AsRef<str>>>,
links: Option<impl Into<InternedString>>,
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 Into<InternedString>>,
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 Clone for Summary
[src]
impl Debug for Summary
[src]
impl Eq for Summary
[src]
impl Hash for Summary
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Summary> for Summary
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &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> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,