pub enum FunctorError {
InvalidRepetitionRange {
lower: i64,
upper: i64,
},
FsmBuild(String),
LazyRuleBodyNotChoices {
rule_name: String,
},
LazyRuleElementNotTerminal {
rule_name: String,
},
}Expand description
A grammar pass rejected its input grammar.
Variants§
InvalidRepetitionRange
A repetition range with a negative lower bound, or an upper bound below the lower one.
Fields
FsmBuild(String)
A rule body could not be compiled into an automaton (e.g. an invalid regex).
LazyRuleBodyNotChoices
A lazy rule whose body is not a choices of terminal-like sequences.
LazyRuleElementNotTerminal
A lazy rule whose body contains an element that does not compile into the rule’s own FSM.
Trait Implementations§
Source§impl Clone for FunctorError
impl Clone for FunctorError
Source§impl Debug for FunctorError
impl Debug for FunctorError
Source§impl Display for FunctorError
impl Display for FunctorError
impl Eq for FunctorError
Source§impl Error for FunctorError
impl Error for FunctorError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<FunctorError> for CompileError
impl From<FunctorError> for CompileError
Source§fn from(source: FunctorError) -> Self
fn from(source: FunctorError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FunctorError
impl PartialEq for FunctorError
impl StructuralPartialEq for FunctorError
Auto Trait Implementations§
impl Freeze for FunctorError
impl RefUnwindSafe for FunctorError
impl Send for FunctorError
impl Sync for FunctorError
impl Unpin for FunctorError
impl UnsafeUnpin for FunctorError
impl UnwindSafe for FunctorError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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