Skip to main content

Aggregatable

Trait Aggregatable 

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

Source

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

Implementations on Foreign Types§

Source§

impl Aggregatable for bool

Source§

impl Aggregatable for f64

Source§

impl Aggregatable for UncertainBool

Source§

impl Aggregatable for UncertainF64

Implementors§