pub struct SWAg<T, F> { /* private fields */ }
Expand description
F must give a semigroup: it is required that F satisfies associativity. Commutativity and existence of the identity are not required. Reference: https://scrapbox.io/data-structures/Sliding_Window_Aggregation
Implementations§
Auto Trait Implementations§
impl<T, F> Freeze for SWAg<T, F>where
F: Freeze,
impl<T, F> RefUnwindSafe for SWAg<T, F>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for SWAg<T, F>
impl<T, F> Sync for SWAg<T, F>
impl<T, F> Unpin for SWAg<T, F>
impl<T, F> UnwindSafe for SWAg<T, F>where
F: UnwindSafe,
T: UnwindSafe,
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