pub struct Accum<Acc, Input, C, F> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<Acc: Clone, Input, C, F: FnMut(&mut Acc, Input)> StreamFunction for Accum<Acc, Input, C, F>
impl<Acc: Clone, Input, C, F: FnMut(&mut Acc, Input)> StreamFunction for Accum<Acc, Input, C, F>
type Input = Input
type Output = Acc
type Clock = C
type Error = ()
fn step( &mut self, input: Self::Input, _: Self::Clock, ) -> Result<Self::Output, Self::Error>
fn map<U, F>(self, f: F) -> Map<Self, U>
fn apply_to<Input, C, I: Iterator<Item = (Input, C)>>(
self,
iterator: I,
) -> Apply<I, Self> ⓘwhere
Self: Sized,
fn iter(self) -> Iter<Self>where
Self: Sized,
fn and_then<SF: StreamFunction<Input = Self::Output, Clock = Self::Clock, Error = Self::Error>>(
self,
sf: SF,
) -> Composition<Self, SF>where
Self: Sized,
fn parallel<SF: StreamFunction>(self, sf: SF) -> Parallel<Self, SF>where
Self: Sized,
fn fan_out<SF: StreamFunction<Input = Self::Input, Clock = Self::Clock, Error = Self::Error>>( self, sf: SF, ) -> FanOut<Self::Input, Self::Clock, Self::Error, Self, SF>
Auto Trait Implementations§
impl<Acc, Input, C, F> Freeze for Accum<Acc, Input, C, F>
impl<Acc, Input, C, F> RefUnwindSafe for Accum<Acc, Input, C, F>
impl<Acc, Input, C, F> Send for Accum<Acc, Input, C, F>
impl<Acc, Input, C, F> Sync for Accum<Acc, Input, C, F>
impl<Acc, Input, C, F> Unpin for Accum<Acc, Input, C, F>
impl<Acc, Input, C, F> UnwindSafe for Accum<Acc, Input, C, F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more