pub struct PatchResolutionInputs<'a> {
pub graph: &'a PackageGraph,
pub manifest_patches: &'a PatchManifestSettings,
pub config_patches: &'a BTreeMap<PackageName, ConfigPatchInput>,
}Expand description
Inputs to resolve_active_patches. Bundling them keeps the
call site readable and the function signature stable as new
inputs land.
Fields§
§graph: &'a PackageGraphLoaded initial workspace graph. Used to find the
workspace root manifest and its [patch] table, and to
look up version requirements for patched names.
manifest_patches: &'a PatchManifestSettingsManifest-declared patches plus the directory the manifest lives in (for relative path resolution).
config_patches: &'a BTreeMap<PackageName, ConfigPatchInput>Config-derived patches keyed by package name. Each entry carries the directory of the config file that declared it so relative paths resolve against the right base.
Auto Trait Implementations§
impl<'a> Freeze for PatchResolutionInputs<'a>
impl<'a> RefUnwindSafe for PatchResolutionInputs<'a>
impl<'a> Send for PatchResolutionInputs<'a>
impl<'a> Sync for PatchResolutionInputs<'a>
impl<'a> Unpin for PatchResolutionInputs<'a>
impl<'a> UnsafeUnpin for PatchResolutionInputs<'a>
impl<'a> UnwindSafe for PatchResolutionInputs<'a>
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