Struct another_rxrust::operators::sum_and_count::SumAndCount
source · pub struct SumAndCount<Item> { /* private fields */ }Implementations§
source§impl<'a, Item> SumAndCount<Item>where
Item: Clone + Send + Sync + Add<Output = Item>,
impl<'a, Item> SumAndCount<Item>where Item: Clone + Send + Sync + Add<Output = Item>,
pub fn new() -> SumAndCount<Item>
pub fn execute( &self, source: Observable<'a, Item> ) -> Observable<'a, (Item, usize)>
Trait Implementations§
source§impl<Item: Clone> Clone for SumAndCount<Item>
impl<Item: Clone> Clone for SumAndCount<Item>
source§fn clone(&self) -> SumAndCount<Item>
fn clone(&self) -> SumAndCount<Item>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more