Enum pest::error::ErrorVariant[][src]

pub enum ErrorVariant<R> {
    ParsingError {
        positives: Vec<R>,
        negatives: Vec<R>,
    },
    CustomError {
        message: String,
    },
}

Different kinds of parsing errors.

Variants

Generated parsing error with expected and unexpected Rules

Fields of ParsingError

Positive attempts

Negative attempts

Custom error with a message

Fields of CustomError

Short explanation

Trait Implementations

impl<R: Clone> Clone for ErrorVariant<R>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<R: Debug> Debug for ErrorVariant<R>
[src]

Formats the value using the given formatter. Read more

impl<R: Eq> Eq for ErrorVariant<R>
[src]

impl<R: Hash> Hash for ErrorVariant<R>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<R: PartialEq> PartialEq for ErrorVariant<R>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<R> Send for ErrorVariant<R> where
    R: Send

impl<R> Sync for ErrorVariant<R> where
    R: Sync