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
ParsingError
Generated parsing error with expected and unexpected Rule
s
Fields of ParsingError
positives: Vec<R> | Positive attempts |
negatives: Vec<R> | Negative attempts |
CustomError
Custom error with a message
Fields of CustomError
message: String | Short explanation |
Trait Implementations
impl<R: Clone> Clone for ErrorVariant<R>
[src]
impl<R: Clone> Clone for ErrorVariant<R>
fn clone(&self) -> ErrorVariant<R>
[src]
fn clone(&self) -> ErrorVariant<R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<R: Debug> Debug for ErrorVariant<R>
[src]
impl<R: Debug> Debug for ErrorVariant<R>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<R: Eq> Eq for ErrorVariant<R>
[src]
impl<R: Eq> Eq for ErrorVariant<R>
impl<R: Hash> Hash for ErrorVariant<R>
[src]
impl<R: Hash> Hash for ErrorVariant<R>
fn hash<__HR: Hasher>(&self, state: &mut __HR)
[src]
fn hash<__HR: Hasher>(&self, state: &mut __HR)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl<R: PartialEq> PartialEq for ErrorVariant<R>
[src]
impl<R: PartialEq> PartialEq for ErrorVariant<R>
fn eq(&self, other: &ErrorVariant<R>) -> bool
[src]
fn eq(&self, other: &ErrorVariant<R>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ErrorVariant<R>) -> bool
[src]
fn ne(&self, other: &ErrorVariant<R>) -> bool
This method tests for !=
.
Auto Trait Implementations
impl<R> Send for ErrorVariant<R> where
R: Send,
impl<R> Send for ErrorVariant<R> where
R: Send,
impl<R> Sync for ErrorVariant<R> where
R: Sync,
impl<R> Sync for ErrorVariant<R> where
R: Sync,