Trait Window

Source
pub trait Window<I> {
    // Required method
    fn window(&self, current: usize, size: NonZeroUsize) -> Option<Vec<I>>;
}
Expand description

Functionality to create a window.

Required Methods§

Source

fn window(&self, current: usize, size: NonZeroUsize) -> Option<Vec<I>>

Creates a window of a collection.

§Returns

A Vec<I> representing the window.

Implementors§

Source§

impl<I, T: Dataset<I> + ?Sized> Window<I> for T