Trait WindowSortIterExt

Source
pub trait WindowSortIterExt: Sized {
    // Required method
    fn window_sort(self, window_size: usize) -> WindowSort<Self> 
       where Self: Iterator,
             <Self as Iterator>::Item: Ord;
}
Expand description

Trait that extends iterators with functionality to sort items within a sliding window. See the crate-level documentation for more info.

Required Methods§

Source

fn window_sort(self, window_size: usize) -> WindowSort<Self>
where Self: Iterator, <Self as Iterator>::Item: Ord,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<I: Iterator> WindowSortIterExt for I
where <I as Iterator>::Item: Ord,