Struct parser_combinators::State [] [src]

pub struct State<I> where
    I: Stream
{ pub position: <I::Item as Positioner>::Position, pub input: I, }

The State<I> struct keeps track of the current position in the stream I

Fields

Methods

impl<I: Stream> State<I>
[src]

uncons is the most general way of extracting and item from a stream It takes a function f as argument which should update the position according to the item that was extracted Usually you want to use uncons_char instead which works directly on character streams

Trait Implementations

impl<I: Clone> Clone for State<I> where
    I: Stream,
    I::Item: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<I: PartialEq> PartialEq for State<I> where
    I: Stream,
    I::Item: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<I> Debug for State<I> where
    I: Stream + Debug,
    <I::Item as Positioner>::Position: Debug
[src]

Formats the value using the given formatter.