pub trait TagError<I, T>: Sized {
    fn from_tag(input: I, tag: T) -> Self;

    fn from_tag_no_case(input: I, tag: T) -> Self { ... }
}
Expand description

Similar to FromExternalError and ContextError, this trait allows a parser to create an error representing an unmatched tag. This allows error messages to produce more useful context about what went wrong.

Required Methods

Create an error from an expected tag at a location.

Provided Methods

As above, but for a case insensitive tag. By default this just calls from_tag

Implementations on Foreign Types

Implementors