pub struct ActivePatchSet { /* private fields */ }Expand description
Container for the active patch set. Ordered by package name for deterministic iteration.
Implementations§
Source§impl ActivePatchSet
impl ActivePatchSet
Sourcepub fn iter(&self) -> Iter<'_, ActivePatch>
pub fn iter(&self) -> Iter<'_, ActivePatch>
Iterate entries in deterministic (package-name) order.
Source§impl ActivePatchSet
impl ActivePatchSet
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Whether the set carries any entries. Used by the CLI to short-circuit the no-patches path.
Sourcepub fn get(&self, name: &PackageName) -> Option<&ActivePatch>
pub fn get(&self, name: &PackageName) -> Option<&ActivePatch>
Lookup by package name.
Sourcepub fn patched_names(&self) -> BTreeSet<&str>
pub fn patched_names(&self) -> BTreeSet<&str>
Set of patched package names. Useful for callers that need to filter the registry list / closure detection by name.
Sourcepub fn owned_patched_names(&self) -> BTreeSet<String>
pub fn owned_patched_names(&self) -> BTreeSet<String>
Patched package names as owned strings. Convenient for callers that need to hold the set across the loader / artifact-pipeline boundary without lifetime juggling.
Sourcepub fn workspace_sources(&self) -> Vec<PatchedPackageSource>
pub fn workspace_sources(&self) -> Vec<PatchedPackageSource>
Adapt this set into the workspace loader’s
PatchedPackageSource shape. The loader stitches each
entry as a local-kind package whose (name, version, manifest_path) is supplied here, so the mapping
belongs next to the loader’s input type rather than in
CLI orchestration code.
Trait Implementations§
Source§impl Clone for ActivePatchSet
impl Clone for ActivePatchSet
Source§fn clone(&self) -> ActivePatchSet
fn clone(&self) -> ActivePatchSet
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more