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
Implementations on Foreign Types
impl<'a, T: ?Sized> Positioner for &'a T where
T: Positioner,
[src]
impl<'a, T: ?Sized> Positioner for &'a T where
T: Positioner,
impl<T> Positioner for [T] where
T: Positioner,
[src]
impl<T> Positioner for [T] where
T: Positioner,
impl Positioner for str
[src]
impl Positioner for str
type Position = SourcePosition
fn start() -> SourcePosition
[src]
fn start() -> SourcePosition
fn update(&self, position: &mut SourcePosition)
[src]
fn update(&self, position: &mut SourcePosition)
impl Positioner for char
[src]
impl Positioner for char
type Position = SourcePosition
fn start() -> SourcePosition
[src]
fn start() -> SourcePosition
fn update(&self, position: &mut SourcePosition)
[src]
fn update(&self, position: &mut SourcePosition)
impl Positioner for u8
[src]
impl Positioner for u8
type Position = BytePosition
fn start() -> BytePosition
[src]
fn start() -> BytePosition
fn update(&self, b: &mut BytePosition)
[src]
fn update(&self, b: &mut BytePosition)
Implementors
impl<'a, T> Positioner for SliceStream<'a, T> where
T: Positioner + 'a, type Position = T::Position;