pub struct StreamWindow<T> { /* private fields */ }Expand description
A stream window that maintains a sliding window over a stream.
Useful for streaming algorithms that need fixed-size recent history.
Implementations§
Source§impl<T: Clone> StreamWindow<T>
impl<T: Clone> StreamWindow<T>
Sourcepub fn window_size(&self) -> usize
pub fn window_size(&self) -> usize
Return the window size.
Auto Trait Implementations§
impl<T> Freeze for StreamWindow<T>
impl<T> RefUnwindSafe for StreamWindow<T>where
T: RefUnwindSafe,
impl<T> Send for StreamWindow<T>where
T: Send,
impl<T> Sync for StreamWindow<T>where
T: Sync,
impl<T> Unpin for StreamWindow<T>where
T: Unpin,
impl<T> UnsafeUnpin for StreamWindow<T>
impl<T> UnwindSafe for StreamWindow<T>where
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