combine::stream

Module state

Source
Expand description

Stateful stream wrappers.

Structs§

  • 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().
  • Struct which represents a position in a source file.
  • The State<I> struct maintains the current position in the stream I using the Positioner trait to track the position.

Traits§

  • Defines a default Positioner type for a particular Stream type.
  • Trait for tracking the current position of a Stream.
  • Trait for tracking the current position of a RangeStream.