pub struct Window<P: AxisProfile> { /* private fields */ }Expand description
A sliding window over a monoid: the fold of the last capacity pushed
values, in push order, with each value folded at most twice.
back holds the newer values with back_fold their running fold; front
holds suffix folds of the older values, oldest last, so the oldest value’s
entry is the fold of everything in front. When front runs out the
whole of back moves across as suffix folds. The window’s fold is
front.last() ⊕ back_fold.
Implementations§
Auto Trait Implementations§
impl<P> Freeze for Window<P>
impl<P> RefUnwindSafe for Window<P>
impl<P> Send for Window<P>
impl<P> Sync for Window<P>
impl<P> Unpin for Window<P>
impl<P> UnsafeUnpin for Window<P>
impl<P> UnwindSafe for Window<P>
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