Trait nommy::Buffer[][src]

pub trait Buffer<T>: Iterator<Item = T> {
    type Iter: Iterator<Item = T>;
    fn cursor(&mut self) -> Cursor<'_, Self::Iter>

Notable traits for Cursor<'a, I>

impl<'a, I: Iterator> Iterator for Cursor<'a, I> where
    I::Item: Clone
type Item = I::Item;
;
fn fast_forward(&mut self, n: usize); }

Associated Types

type Iter: Iterator<Item = T>[src]

Loading content...

Required methods

fn cursor(&mut self) -> Cursor<'_, Self::Iter>

Notable traits for Cursor<'a, I>

impl<'a, I: Iterator> Iterator for Cursor<'a, I> where
    I::Item: Clone
type Item = I::Item;
[src]

fn fast_forward(&mut self, n: usize)[src]

Loading content...

Implementors

impl<'a, I: Iterator> Buffer<<I as Iterator>::Item> for Cursor<'a, I> where
    I::Item: Clone
[src]

type Iter = I

fn fast_forward(&mut self, n: usize)[src]

Skip forward n steps in the iterator Often paired with Cursor::cursor and Cursor::close

impl<I: Iterator> Buffer<<I as Iterator>::Item> for Buf<I>[src]

type Iter = I

fn cursor(&mut self) -> Cursor<'_, I>

Notable traits for Cursor<'a, I>

impl<'a, I: Iterator> Iterator for Cursor<'a, I> where
    I::Item: Clone
type Item = I::Item;
[src]

Create a Cursor over this buffer

fn fast_forward(&mut self, n: usize)[src]

Skip forward n steps in the iterator Often paired with Cursor::cursor and Cursor::close

Loading content...