parseme 0.2.0-alpha

A framework for building robust parsers.
Documentation
1
2
3
4
5
6
7
8
/// An iterator or stream which implements peeking.
pub trait Peek {
    /// The type of item produced by the iterator or stream.
    type Item;

    /// Returns the next item in the iterator or stream without advancing it.
    fn peek(&mut self) -> Option<Self::Item>;
}