pub enum GenerateError {
GrammarPath(String),
IO(String),
LoadGrammarFile(LoadGrammarError),
ParseGrammar(ParseGrammarError),
Prepare(PrepareGrammarError),
VariableInfo(VariableInfoError),
BuildTables(ParseTableBuilderError),
ParseVersion(ParseVersionError),
}
Variants§
GrammarPath(String)
IO(String)
LoadGrammarFile(LoadGrammarError)
ParseGrammar(ParseGrammarError)
Prepare(PrepareGrammarError)
VariableInfo(VariableInfoError)
BuildTables(ParseTableBuilderError)
ParseVersion(ParseVersionError)
Trait Implementations§
Source§impl Debug for GenerateError
impl Debug for GenerateError
Source§impl Display for GenerateError
impl Display for GenerateError
Source§impl Error for GenerateError
impl Error for GenerateError
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<Error> for GenerateError
impl From<Error> for GenerateError
Source§impl From<LoadGrammarError> for GenerateError
impl From<LoadGrammarError> for GenerateError
Source§fn from(source: LoadGrammarError) -> Self
fn from(source: LoadGrammarError) -> Self
Converts to this type from the input type.
Source§impl From<ParseGrammarError> for GenerateError
impl From<ParseGrammarError> for GenerateError
Source§fn from(source: ParseGrammarError) -> Self
fn from(source: ParseGrammarError) -> Self
Converts to this type from the input type.
Source§impl From<ParseTableBuilderError> for GenerateError
impl From<ParseTableBuilderError> for GenerateError
Source§fn from(source: ParseTableBuilderError) -> Self
fn from(source: ParseTableBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<ParseVersionError> for GenerateError
impl From<ParseVersionError> for GenerateError
Source§fn from(source: ParseVersionError) -> Self
fn from(source: ParseVersionError) -> Self
Converts to this type from the input type.
Source§impl From<PrepareGrammarError> for GenerateError
impl From<PrepareGrammarError> for GenerateError
Source§fn from(source: PrepareGrammarError) -> Self
fn from(source: PrepareGrammarError) -> Self
Converts to this type from the input type.
Source§impl From<VariableInfoError> for GenerateError
impl From<VariableInfoError> for GenerateError
Source§fn from(source: VariableInfoError) -> Self
fn from(source: VariableInfoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GenerateError
impl RefUnwindSafe for GenerateError
impl Send for GenerateError
impl Sync for GenerateError
impl Unpin for GenerateError
impl UnwindSafe for GenerateError
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