pub struct SelectionContext<'a> {
pub selected_files: &'a HashSet<String>,
pub available_files: &'a HashMap<String, FileInfo>,
pub dependencies: &'a HashMap<String, Vec<String>>,
pub interfaces: &'a HashMap<String, Vec<String>>,
pub remaining_budget: usize,
pub dependents_map: &'a HashMap<String, Vec<String>>,
pub selected_source_count: usize,
}Expand description
Context passed to rule evaluators
Fields§
§selected_files: &'a HashSet<String>Files already selected
available_files: &'a HashMap<String, FileInfo>Available files with metadata
dependencies: &'a HashMap<String, Vec<String>>Dependency graph
interfaces: &'a HashMap<String, Vec<String>>Interface definitions
remaining_budget: usizeCurrent budget remaining
dependents_map: &'a HashMap<String, Vec<String>>Reverse dependency lookup: file -> files that depend on it
selected_source_count: usizePre-computed count of selected source files (O(1) optimization)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SelectionContext<'a>
impl<'a> RefUnwindSafe for SelectionContext<'a>
impl<'a> Send for SelectionContext<'a>
impl<'a> Sync for SelectionContext<'a>
impl<'a> Unpin for SelectionContext<'a>
impl<'a> UnwindSafe for SelectionContext<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more