pub trait IteratedOperation<I, Q: QueueCapAtLeast<LEN, Item = Self::Output>, const LEN: usize> {
    type Output: Clone;

    // Required method
    fn call(&mut self, q: &Q, y: Option<&Self::Output>, x: I) -> Self::Output;
}
Expand description

Tumbling operations that caches outputs.

Required Associated Types§

source

type Output: Clone

The output type.

Required Methods§

source

fn call(&mut self, q: &Q, y: Option<&Self::Output>, x: I) -> Self::Output

Call.

Implementors§

source§

impl<F, I, O, Q, const LEN: usize> IteratedOperation<I, Q, LEN> for Fwhere O: Clone, Q: QueueCapAtLeast<LEN, Item = O>, F: FnMut(&Q, Option<&O>, I) -> O,

§

type Output = O