Expand description
Stateful stream wrappers.
Structs
- The
IndexPositioner<Item, Range>struct maintains the current index into the streamI. The initial index is index 0. EachItemconsumed increments the index by 1; eachrangeconsumed increments the position byrange.len(). - Struct which represents a position in a source file.
- The
State<I>struct maintains the current position in the streamIusing thePositionertrait to track the position.
Traits
- Defines a default
Positionertype for a particularStreamtype. - Trait for tracking the current position of a
Stream. - Trait for tracking the current position of a
RangeStream.