Skip to main content

ReduceToAggregate

Trait ReduceToAggregate 

Source
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§

Source

type Result: AggregateReductionResult<Source = Self, Target = T>

The reduction result type.

Required Methods§

Source

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.

Implementors§