parseme 0.2.0-alpha

A framework for building robust parsers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// An error type for a parser.
///
/// TODO: make derive macro for this
pub trait Error {
    /// Returns `true` if this [Error] represents failing to find a match.
    fn is_no_match(&self) -> bool;
}

impl Error for () {
    #[inline]
    fn is_no_match(&self) -> bool {
        true
    }
}