Trait nom_supreme::tag::TagError
source · [−]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
Provided Methods
fn from_tag_no_case(input: I, tag: T) -> Self
fn from_tag_no_case(input: I, tag: T) -> Self
As above, but for a case insensitive tag. By default this just
calls from_tag