Trait parser_combinators::primitives::Positioner [] [src]

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

Positioner represents the operations needed to update a position given an item from the stream When implementing stream for custom token type this must be implemented for that token to allow the position to be updated

Associated Types

Required Methods

Creates a start position

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

Implementors