[go: up one dir, main page]

pub trait Positioner<Item> {
    type Position: Clone + Ord;

    fn position(&self) -> Self::Position;
    fn update(&mut self, item: &Item);
}
Expand description

Trait for tracking the current position of a Stream.

Required 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§