Skip to main content

Aggregate

Trait Aggregate 

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

Source

fn identity() -> Self

Neutral element for folding.

Source

fn combine(self, other: Self) -> Result<Self, AggregationError>

Associative combine operation.

Provided Methods§

Source

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".

Implementors§