Lines Matching defs:Error
0 //! Error management
58 pub struct Error<I> {
65 impl<I> Error<I> {
67 pub fn new(input: I, code: ErrorKind) -> Error<I> {
68 Error { input, code }
72 impl<I> ParseError<I> for Error<I> {
74 Error { input, code: kind }
82 impl<I> ContextError<I> for Error<I> {}
84 impl<I, E> FromExternalError<I, E> for Error<I> {
87 Error { input, code: kind }
91 /// The Display implementation allows the std::error::Error implementation
92 impl<I: fmt::Display> fmt::Display for Error<I> {
99 impl<I: fmt::Debug + fmt::Display> std::error::Error for Error<I> {}
160 /// Error context for `VerboseError`
166 /// Error kind given by various nom parsers
226 impl<I: fmt::Debug + fmt::Display> std::error::Error for VerboseError<I> {}
243 Err(Err::Error(e)) => Err(Err::Error(E::add_context(i, context, e))),
569 /// The message prints the `Error` or `Incomplete`
584 /// // Error(Position(0, [101, 102, 103, 104, 105, 106, 107, 108])) at l.5 by ' tag ! ( "abcd" ) '
600 println!("{}: Error({:?}) at:\n{}", context, e, i.to_hex(8));