pub enum CodegenError {
UnsupportedStatement(String),
UnsupportedStatementForm(&'static str, String),
InvalidIdentifier(IdentifierError),
Expr(ExprError),
}
Expand description
Error while generating an intermediate code from the AST.
Variants§
UnsupportedStatement(String)
UnsupportedStatementForm(&'static str, String)
InvalidIdentifier(IdentifierError)
Expr(ExprError)
Trait Implementations§
Source§impl Debug for CodegenError
impl Debug for CodegenError
Source§impl Display for CodegenError
impl Display for CodegenError
Source§impl Error for CodegenError
impl Error for CodegenError
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<CodegenError> for ExecutionError
impl From<CodegenError> for ExecutionError
Source§fn from(err: CodegenError) -> Self
fn from(err: CodegenError) -> Self
Converts to this type from the input type.
Source§impl From<CodegenError> for ParserOrCodegenError
impl From<CodegenError> for ParserOrCodegenError
Source§fn from(e: CodegenError) -> Self
fn from(e: CodegenError) -> Self
Converts to this type from the input type.
Source§impl From<ExprError> for CodegenError
impl From<ExprError> for CodegenError
Source§impl From<IdentifierError> for CodegenError
impl From<IdentifierError> for CodegenError
Source§fn from(i: IdentifierError) -> Self
fn from(i: IdentifierError) -> Self
Converts to this type from the input type.
Source§impl From<ValueError> for CodegenError
impl From<ValueError> for CodegenError
Source§fn from(v: ValueError) -> Self
fn from(v: ValueError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodegenError
impl RefUnwindSafe for CodegenError
impl Send for CodegenError
impl Sync for CodegenError
impl Unpin for CodegenError
impl UnwindSafe for CodegenError
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