pub struct Cumulative<T, V> { /* private fields */ }Expand description
Cumulative Sliding Window with a chained view
Implementations§
Source§impl<T, V> Cumulative<T, V>
impl<T, V> Cumulative<T, V>
Sourcepub fn window_len(&self) -> NonZeroUsize
pub fn window_len(&self) -> NonZeroUsize
The length of the sliding window.
Source§impl<T, V> Cumulative<T, V>
impl<T, V> Cumulative<T, V>
Sourcepub fn new(view: V, window_len: NonZeroUsize) -> Self
pub fn new(view: V, window_len: NonZeroUsize) -> Self
Create a new cumulative sliding window with a chained view and a window length
Trait Implementations§
Source§impl<T: Clone, V: Clone> Clone for Cumulative<T, V>
impl<T: Clone, V: Clone> Clone for Cumulative<T, V>
Source§fn clone(&self) -> Cumulative<T, V>
fn clone(&self) -> Cumulative<T, V>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<T, V> Freeze for Cumulative<T, V>
impl<T, V> RefUnwindSafe for Cumulative<T, V>where
V: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, V> Send for Cumulative<T, V>
impl<T, V> Sync for Cumulative<T, V>
impl<T, V> Unpin for Cumulative<T, V>
impl<T, V> UnsafeUnpin for Cumulative<T, V>where
V: UnsafeUnpin,
T: UnsafeUnpin,
impl<T, V> UnwindSafe for Cumulative<T, V>where
V: 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