pub trait Aggregatable: Sized {
// Required method
fn aggregate(
effects: &[EffectValue<Self>],
logic: &AggregateLogic,
threshold: Option<f64>,
) -> Result<EffectValue<Self>, CausalityError>;
}Expand description
Defines how to aggregate a collection of effects of type T.
Required Methods§
fn aggregate( effects: &[EffectValue<Self>], logic: &AggregateLogic, threshold: Option<f64>, ) -> Result<EffectValue<Self>, CausalityError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".