Struct nommy::Cursor[][src]

pub struct Cursor<'a, I: Iterator> { /* fields omitted */ }

Cursors are heavily related to Buffers. Refer there for documentation

Implementations

impl<'a, I: Iterator> Cursor<'a, I>[src]

pub fn close(self) -> usize[src]

Drop the Cursor, returning how many items have been read since it was created.

Trait Implementations

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<'a, I: Iterator> Iterator for Cursor<'a, I> where
    I::Item: Clone
[src]

type Item = I::Item

The type of the elements being iterated over.

Auto Trait Implementations

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

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

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

impl<'a, I> Unpin for Cursor<'a, I>[src]

impl<'a, I> !UnwindSafe for Cursor<'a, I>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoBuf for I where
    I: IntoIterator
[src]

type Iter = <I as IntoIterator>::IntoIter

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.