Trait Aggregate

Source
pub trait Aggregate<S> {
    // Required method
    fn aggregate<I>(&self, prices: I) -> Result<Price, Error>
       where I: IntoIterator<Item = Option<Price>>,
             I::IntoIter: ExactSizeIterator<Item = Option<Price>>;
}

Required Methods§

Source

fn aggregate<I>(&self, prices: I) -> Result<Price, Error>

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§

Source§

impl<S> Aggregate<S> for Aggregator<S>

Source§

impl<S> Aggregate<S> for Priority<S>

Source§

impl<V: MedianVariant, S> Aggregate<S> for Median<V, S>