pub trait ReduceToAggregate<T: Problem>: Problem {
type Result: AggregateReductionResult<Source = Self, Target = T>;
// Required method
fn reduce_to_aggregate(&self) -> Self::Result;
}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) -> Self::Result
fn reduce_to_aggregate(&self) -> Self::Result
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", so this trait is not object safe.