jpar 0.1.0

A text-oriented, zero-copy, parser combinators library
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::Cursor;

/// The result of every parser method.
pub type ParserResult<T, Err = ()> = Result<T, ParserResultError<Err>>;

/// The type of errors that parser method can return.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum ParserResultError<Err> {
    NotFound,
    Error((Cursor, Err)),
}