Struct combine::state::IndexPositioner [] [src]

pub struct 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().

Methods

impl IndexPositioner
[src]

Trait Implementations

impl Clone for IndexPositioner
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for IndexPositioner
[src]

Formats the value using the given formatter.

impl Default for IndexPositioner
[src]

Returns the "default value" for a type. Read more

impl PartialEq for IndexPositioner
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<Item> Positioner<Item> for IndexPositioner where
    Item: PartialEq + Clone
[src]

The type which keeps track of the position

Returns the current position

Updates the position given that item has been taken from the stream

impl<Item, Range> RangePositioner<Item, Range> for IndexPositioner where
    Item: PartialEq + Clone,
    Range: PartialEq + Clone + Range
[src]

Updates the position given that range has been taken from the stream