pub trait ReduceToAggregate<T: Problem>: Problem {
type Result: AggregateReductionResult<Source = Self, Target = T>;
// Required method
fn reduce_to_aggregate(&self) -> Result<Self::Result, ReductionError>;
}Expand description
Trait for problems that can be reduced to target type T for aggregate-value workflows.
Required Associated Types§
Sourcetype Result: AggregateReductionResult<Source = Self, Target = T>
type Result: AggregateReductionResult<Source = Self, Target = T>
The reduction result type.
Required Methods§
Sourcefn reduce_to_aggregate(&self) -> Result<Self::Result, ReductionError>
fn reduce_to_aggregate(&self) -> Result<Self::Result, ReductionError>
Reduce this problem to the target problem type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".