Module combine::state [] [src]

Module containing stateful stream wrappers

Structs

IndexPositioner

The IndexPositioner<Item, Range> struct maintains the current index into the stream I. The initial index is index 0. Each Item consumed increments the index by 1; each range consumed increments the position by range.len().

SourcePosition

Struct which represents a position in a source file.

State

The State<I> struct maintains the current position in the stream I using the Positioner trait to track the position.

Traits

DefaultPositioned

Defines a default Positioner type for a particular Stream type.

Positioner

Trait for tracking the current position of a Stream.

RangePositioner

Trait for tracking the current position of a RangeStream.