pub trait Aggregate:
Clone
+ Debug
+ Serialize
+ DeserializeOwned {
// Required methods
fn identity() -> Self;
fn combine(self, other: Self) -> Result<Self, AggregationError>;
// Provided method
fn is_absorbing(&self) -> bool { ... }
}Expand description
Foldable aggregate values for enumerating a problem’s configuration space.
Required Methods§
Sourcefn combine(self, other: Self) -> Result<Self, AggregationError>
fn combine(self, other: Self) -> Result<Self, AggregationError>
Associative combine operation.
Provided Methods§
Sourcefn is_absorbing(&self) -> bool
fn is_absorbing(&self) -> bool
Whether no further configuration can change this aggregate value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".