Trait readahead_iterator::IntoReadahead[][src]

pub trait IntoReadahead<T> where
    T: Send + 'static, 
{ fn readahead(self, buffer_size: usize) -> Readahead<T>

Notable traits for Readahead<T>

impl<T> Iterator for Readahead<T> where
    T: Send + 'static, 
type Item = T;

    where
        Self: Send + 'static
; }

Adds a .readahead(buffer_size) method to any iterator.

use readahead_iterator::IntoReadahead;

let c = "Some input data".chars()
    .readahead(10)
    .filter(|c| c.is_alphabetic())
    .count();

Required methods

fn readahead(self, buffer_size: usize) -> Readahead<T>

Notable traits for Readahead<T>

impl<T> Iterator for Readahead<T> where
    T: Send + 'static, 
type Item = T;
where
    Self: Send + 'static, 
[src]

Apply a readahead adaptor to an iterator.

buffer_size is the maximum number of buffered items.

Loading content...

Implementors

impl<I, T> IntoReadahead<T> for I where
    T: Send + 'static,
    I: Iterator<Item = T>, 
[src]

Loading content...