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
ParsingErrorGenerated parsing error with expected and unexpected Rules
Fields of ParsingError
positives: Vec<R> | Positive attempts |
negatives: Vec<R> | Negative attempts |
CustomErrorCustom 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) -> ResultFormats 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>) -> boolThis 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>) -> boolThis 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,