Expand description

Error types, traits and utilities.

“I like the cover,“ he said. “Don’t Panic. It’s the first helpful or intelligible thing anybody’s said to me all day.”

You can implement the Error trait to create your own parser errors, or you can use one provided by the crate like Simple or Cheap.

Structs

A minimal error type that tracks only the error span and label. This type is most useful when you want fast parsing but do not particularly care about the quality of error messages.

An internal type used to facilitate error prioritisation. You shouldn’t need to interact with this type during normal use of the crate.

A simple default error type that tracks error spans, expected inputs, and the actual input found at an error site.

Enums

A type representing possible reasons for an error.

Traits

A trait that describes parser error types.