Trait combine::Positioned
[−]
[src]
pub trait Positioned { type Position: Clone + Ord; fn position(&self) -> Self::Position; }
Associated Types
type Position: Clone + Ord
Type which represents the position in a stream.
Ord
is required to allow parsers to determine which of two positions are further ahead.
Required Methods
Implementors
impl<'a> Positioned for &'a str
impl<'a, T> Positioned for &'a [T]
impl<'a, T> Positioned for SliceStream<'a, T>
impl<'a, I> Positioned for BufferedStreamRef<'a, I> where
I: StreamOnce + Positioned,impl<I, X> Positioned for State<I, X> where
I: StreamOnce,
X: Positioner<I::Item>,