Struct chomp::types::numbering::InputPosition [] [src]

pub struct InputPosition<I: Input, N: Numbering<Token = I::Token>> { /* fields omitted */ }

Wrapper around an Input implementation providing numbering support.

Methods

impl<I: Input, N: Numbering<Token = I::Token>> InputPosition<I, N>
[src]

Creates a new input position instance.

Obtains the current position of the numbering.

Trait Implementations

impl<I: Debug + Input, N: Debug + Numbering<Token = I::Token>> Debug for InputPosition<I, N>
[src]

Formats the value using the given formatter.

impl<I: Input, N: Numbering<Token = I::Token>> IntoInner for InputPosition<I, N>
[src]

The inner type to be revealed.

Primitive: Consumes self and reveals the inner state. Read more

impl<I: Input, N: Numbering<Token = I::Token>> Input for InputPosition<I, N>
[src]

The token type of the input.

The buffer type yielded by this input when multiple tokens are consumed in sequence. Read more

Returns t as a success value in the parsing context. Read more

Returns e as an error value in the parsing context. Read more

Converts a Result into a ParseResult, preserving parser state. Read more