pub enum ParserOrCodegenError {
ParserError(ParserError),
CodegenError(CodegenError),
}
Expand description
Represents either a parser error or a codegen error.
Variants§
ParserError(ParserError)
CodegenError(CodegenError)
Trait Implementations§
Source§impl Debug for ParserOrCodegenError
impl Debug for ParserOrCodegenError
Source§impl Display for ParserOrCodegenError
impl Display for ParserOrCodegenError
Source§impl Error for ParserOrCodegenError
impl Error for ParserOrCodegenError
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 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<ParserError> for ParserOrCodegenError
impl From<ParserError> for ParserOrCodegenError
Source§fn from(e: ParserError) -> Self
fn from(e: ParserError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParserOrCodegenError
impl RefUnwindSafe for ParserOrCodegenError
impl Send for ParserOrCodegenError
impl Sync for ParserOrCodegenError
impl Unpin for ParserOrCodegenError
impl UnwindSafe for ParserOrCodegenError
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