Enum teleparse::GrammarError
source · pub enum GrammarError {
LeftRecursion(String),
FirstFirstConflict(String, String, String),
FirstFollowSeqConflict(String, String, String, String),
FirstFollowConflict(String, String),
}Expand description
Error when constructing the grammar (i.e. not actually parsing yet).
Variants§
LeftRecursion(String)
FirstFirstConflict(String, String, String)
FirstFollowSeqConflict(String, String, String, String)
FirstFollowConflict(String, String)
Implementations§
source§impl GrammarError
impl GrammarError
pub fn left_recursion(stack: &[String], current: &str) -> Self
Trait Implementations§
source§impl Clone for GrammarError
impl Clone for GrammarError
source§fn clone(&self) -> GrammarError
fn clone(&self) -> GrammarError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GrammarError
impl Debug for GrammarError
source§impl Display for GrammarError
impl Display for GrammarError
source§impl Error for GrammarError
impl Error for GrammarError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for GrammarError
impl PartialEq for GrammarError
source§fn eq(&self, other: &GrammarError) -> bool
fn eq(&self, other: &GrammarError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GrammarError
Auto Trait Implementations§
impl Freeze for GrammarError
impl RefUnwindSafe for GrammarError
impl Send for GrammarError
impl Sync for GrammarError
impl Unpin for GrammarError
impl UnwindSafe for GrammarError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more