Lines Matching defs:ErrorKind
22 pub use nom::{error::ErrorKind, error::Error, Err, IResult, Needed};
30 pub enum ErrorKind {
47 Parser(nom::ErrorKind),
50 impl From<nom::ErrorKind> for ErrorKind {
51 fn from(k: nom::ErrorKind) -> Self {
52 ErrorKind::Parser(k)
56 impl From<u32> for ErrorKind {
58 ErrorKind::InvalidLiteral
64 /// This is a superset of `(I, nom::ErrorKind)` that includes the additional errors specified by
65 /// [`ErrorKind`].
71 pub error: ErrorKind,
74 impl<I> From<(I, nom::ErrorKind)> for Error<I> {
75 fn from(e: (I, nom::ErrorKind)) -> Self {
76 Self::from((e.0, ErrorKind::from(e.1)))
80 impl<I> From<(I, ErrorKind)> for Error<I> {
81 fn from(e: (I, ErrorKind)) -> Self {
99 fn from_error_kind(input: I, kind: nom::ErrorKind) -> Self {
106 fn append(_: I, _: nom::ErrorKind, other: Self) -> Self {
142 Err(nom::Err::Error((rem, ErrorKind::Partial).into()))