[][src]Trait nom_supreme::tag::TagError

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

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

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

pub fn from_tag(input: I, tag: T) -> Self[src]

Create an error from an expected tag at a location.

Loading content...

Provided methods

pub fn from_tag_no_case(input: I, tag: T) -> Self[src]

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

Loading content...

Implementations on Foreign Types

impl<I, T> TagError<I, T> for ()[src]

impl<I, T> TagError<I, T> for (I, ErrorKind)[src]

impl<I, T> TagError<I, T> for Error<I>[src]

impl<I, T> TagError<I, T> for VerboseError<I>[src]

Loading content...

Implementors

impl<I> TagError<I, &'static str> for ErrorTree<I>[src]

Loading content...