[][src]Struct rate_common::parser::Input

pub struct Input<'a> { /* fields omitted */ }

A peekable iterator for bytes that records line and column information.

Methods

impl<'a> Input<'a>[src]

pub fn new(source: Box<dyn Iterator<Item = u8> + 'a>, binary: bool) -> Self[src]

Create a new Input from some source

pub fn peek(&mut self) -> Option<u8>[src]

Look at the next byte without consuming it

pub fn error(&self, why: &'static str) -> Error[src]

Create an io::Error with the given message and position information.

Trait Implementations

impl<'_> Iterator for Input<'_>[src]

type Item = u8

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Input<'a>

impl<'a> !Send for Input<'a>

impl<'a> !Sync for Input<'a>

impl<'a> Unpin for Input<'a>

impl<'a> !UnwindSafe for Input<'a>

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> 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.