Type Alias cargo::core::registry::PatchDependency

source ·
pub type PatchDependency<'a> = (&'a Dependency, Option<LockedPatchDependency>);
Expand description

This tuple is an argument to PackageRegistry::patch.

  • The first element is the patch definition straight from the manifest.
  • The second element is an optional variant where the patch has been locked. It is the patch locked to a specific version found in Cargo.lock. This will be None if Cargo.lock doesn’t exist, or the patch did not match any existing entries in Cargo.lock.

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: 16 bytes