Trait combine::stream::position::Positioner [−][src]
pub trait Positioner<Item> { type Position: Clone + Ord; type Checkpoint: Clone; fn position(&self) -> Self::Position; fn update(&mut self, token: &Item); fn checkpoint(&self) -> Self::Checkpoint; fn reset(&mut self, checkpoint: Self::Checkpoint); }
Expand description
Trait for tracking the current position of a Stream
.
Associated Types
type Checkpoint: Clone
[src]Required methods
Updates the position given that token
has been taken from the stream
fn checkpoint(&self) -> Self::Checkpoint
[src]fn reset(&mut self, checkpoint: Self::Checkpoint)
[src]Implementations on Foreign Types
type Checkpoint = T::Checkpoint
Implementors
type Position = SourcePosition
type Checkpoint = Self
type Position = SourcePosition
type Checkpoint = Self
type Checkpoint = Self