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
Show fields
Custom error with a message
Show fields
Fields of CustomError
message: StringShort explanation
Trait Implementations
impl<R: Clone> Clone for ErrorVariant<R>[src]
impl<R: Clone> Clone for ErrorVariant<R>[src]fn clone(&self) -> ErrorVariant<R>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<R: Hash> Hash for ErrorVariant<R>[src]
impl<R: Hash> Hash for ErrorVariant<R>[src]impl<R: PartialEq> PartialEq<ErrorVariant<R>> for ErrorVariant<R>[src]
impl<R: PartialEq> PartialEq<ErrorVariant<R>> for ErrorVariant<R>[src]fn eq(&self, other: &ErrorVariant<R>) -> bool[src]
fn ne(&self, other: &ErrorVariant<R>) -> bool[src]
impl<R: Eq> Eq for ErrorVariant<R>[src]
impl<R> StructuralEq for ErrorVariant<R>[src]
impl<R> StructuralPartialEq for ErrorVariant<R>[src]
Auto Trait Implementations
impl<R> RefUnwindSafe for ErrorVariant<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
impl<R> Send for ErrorVariant<R> where
R: Send,
R: Send,
impl<R> Sync for ErrorVariant<R> where
R: Sync,
R: Sync,
impl<R> Unpin for ErrorVariant<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for ErrorVariant<R> where
R: UnwindSafe,
R: UnwindSafe,