use nom::error::ErrorKind; use nom::error::ParseError; use nom::Err; use thiserror::Error; #[derive(Error, Debug)] pub enum Error { ParserError(I), } pub type IResult> = Result<(I, O), Err>; impl ParseError for Error { fn from_error_kind(input: I, _: ErrorKind) -> Self { Self::ParserError(input) } fn append(_: I, _: ErrorKind, other: Self) -> Self { other } }