pub trait IntoReadahead<T>where
T: Send + 'static,{
// Required method
fn readahead(self, buffer_size: usize) -> Readahead<T> ⓘ
where Self: Send + 'static;
}
Expand description
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();