[−][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
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]
config: &Config,
pkg_id: PackageId,
dependencies: Vec<Dependency>,
features: &BTreeMap<InternedString, Vec<InternedString>>,
links: Option<impl Into<InternedString>>
) -> CargoResult<Summary>
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]
&self,
namespaced_features: bool,
weak_dep_features: bool
) -> CargoResult<()>
Returns an error if this Summary is using an unstable feature that is not enabled.
pub fn checksum(&self) -> Option<&str>
[src]
pub fn links(&self) -> Option<InternedString>
[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]
pub 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
[src]
impl !Send for Summary
[src]
impl !Sync for Summary
[src]
impl Unpin for Summary
[src]
impl !UnwindSafe for Summary
[src]
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
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>,
V: MultiLane<T>,