Trait combine::state::Positioner [] [src]

pub trait Positioner<Item> {
    type Position: Clone + Ord;
    fn position(&self) -> Self::Position;
fn update(&mut self, item: &Item); }

Trait for tracking the current position of a Stream.

Associated Types

The type which keeps track of the position

Required Methods

Returns the current position

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

Implementors