pub trait AggregateReductionResult {
type Source: Problem;
type Target: Problem;
// Required methods
fn target_problem(&self) -> &Self::Target;
fn extract_value(
&self,
target_value: <Self::Target as Problem>::Value,
) -> <Self::Source as Problem>::Value;
}Expand description
Result of reducing a source problem to a target problem for aggregate values.
Unlike ReductionResult, this trait maps aggregate values back from target
space to source space instead of mapping witness configurations.
Required Associated Types§
Required Methods§
Sourcefn target_problem(&self) -> &Self::Target
fn target_problem(&self) -> &Self::Target
Get a reference to the target problem.