Trait combine::primitives::Positioner
[−]
[src]
pub trait Positioner: PartialEq { type Position: Clone + Ord; fn start() -> Self::Position; fn update(&self, position: &mut Self::Position); }
Trait for updating the position for types which can be yielded from a Stream
.
Associated Types
Required Methods
fn start() -> Self::Position
Creates a start position
fn update(&self, position: &mut Self::Position)
Updates the position given that self
has been taken from the stream
Implementors
impl<'a, T: ?Sized> Positioner for &'a T where T: Positioner
impl<T> Positioner for [T] where T: Positioner
impl<'a, T> Positioner for SliceStream<'a, T> where T: Positioner + 'a
impl Positioner for str
impl Positioner for char
impl Positioner for u8