Skip to main content

Window

Trait Window 

Source
pub trait Window<I> {
    // Required method
    fn window(&self, current: usize, size: NonZero<usize>) -> Option<Vec<I>>;
}
Available on crate features std and dataset only.
Expand description

Functionality to create a window.

Required Methods§

Source

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

Creates a window of a collection.

§Returns

A Vec<I> representing the window.

Implementors§

Source§

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