Module pest::inputs [] [src]

A mod containing the Input-related constructs.

Structs

FileInput

A struct useful for matching Files by allocating the contents at the beginning.

Position

A struct containing a position that is tied to an Input which provides useful methods to manually parse it. This leads to an API largely based on the standard Result.

Span

A struct of a span over an Input. It is created from either two Positions or from a Pair.

StringInput

A struct useful for matching heap-allocated Strings.

Traits

Input

A trait that defines an input for a Parser. It should be implemented by custom input sources as minimally and efficiently as possible. unsafe methods should not be called directly; in order to parse the Input manually use Position and ParserState.