Enum pest::error::ErrorVariant
source · [−]pub enum ErrorVariant<R> {
ParsingError {
positives: Vec<R>,
negatives: Vec<R>,
},
CustomError {
message: String,
},
}
Expand description
Different kinds of parsing errors.
Variants
ParsingError
Generated parsing error with expected and unexpected Rule
s
CustomError
Fields
message: String
Short explanation
Custom error with a message
Trait Implementations
sourceimpl<R: Clone> Clone for ErrorVariant<R>
impl<R: Clone> Clone for ErrorVariant<R>
sourcefn clone(&self) -> ErrorVariant<R>
fn clone(&self) -> ErrorVariant<R>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<R: Debug> Debug for ErrorVariant<R>
impl<R: Debug> Debug for ErrorVariant<R>
sourceimpl<R: Hash> Hash for ErrorVariant<R>
impl<R: Hash> Hash for ErrorVariant<R>
sourceimpl<R: PartialEq> PartialEq<ErrorVariant<R>> for ErrorVariant<R>
impl<R: PartialEq> PartialEq<ErrorVariant<R>> for ErrorVariant<R>
sourcefn eq(&self, other: &ErrorVariant<R>) -> bool
fn eq(&self, other: &ErrorVariant<R>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ErrorVariant<R>) -> bool
fn ne(&self, other: &ErrorVariant<R>) -> bool
This method tests for !=
.
impl<R: Eq> Eq for ErrorVariant<R>
impl<R> StructuralEq for ErrorVariant<R>
impl<R> StructuralPartialEq for ErrorVariant<R>
Auto Trait Implementations
impl<R> RefUnwindSafe for ErrorVariant<R> where
R: RefUnwindSafe,
impl<R> Send for ErrorVariant<R> where
R: Send,
impl<R> Sync for ErrorVariant<R> where
R: Sync,
impl<R> Unpin for ErrorVariant<R> where
R: Unpin,
impl<R> UnwindSafe for ErrorVariant<R> where
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more