pub struct PackSolveResult {
pub plan: ProposedPlan,
pub reports: Vec<SolverReport>,
}Expand description
Result of pack solving
Fields§
§plan: ProposedPlanThe proposed plan
reports: Vec<SolverReport>Solver reports (may have tried multiple solvers)
Implementations§
Source§impl PackSolveResult
impl PackSolveResult
Sourcepub fn new(plan: ProposedPlan, report: SolverReport) -> Self
pub fn new(plan: ProposedPlan, report: SolverReport) -> Self
Create a new solve result
Sourcepub fn with_reports(plan: ProposedPlan, reports: Vec<SolverReport>) -> Self
pub fn with_reports(plan: ProposedPlan, reports: Vec<SolverReport>) -> Self
Create with multiple reports
Sourcepub fn primary_report(&self) -> Option<&SolverReport>
pub fn primary_report(&self) -> Option<&SolverReport>
Get the primary (first) report
Sourcepub fn is_feasible(&self) -> bool
pub fn is_feasible(&self) -> bool
Check if any solver found a feasible solution
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PackSolveResult
impl RefUnwindSafe for PackSolveResult
impl Send for PackSolveResult
impl Sync for PackSolveResult
impl Unpin for PackSolveResult
impl UnsafeUnpin for PackSolveResult
impl UnwindSafe for PackSolveResult
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