Trait readahead_iterator::IntoReadahead [−][src]
pub trait IntoReadahead<T> where
T: Send + 'static, { fn readahead(self, buffer_size: usize) -> Readahead<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>ⓘ where
Self: Send + 'static,
[src]
Self: Send + 'static,
Apply a readahead adaptor to an iterator.
buffer_size
is the maximum number of buffered items.
Implementors
Loading content...