Enum debris_error::SingleCompileError
source · pub enum SingleCompileError {
ParseError(Box<ParseError>),
LangError(Box<LangError>),
}
Expand description
A Compile Error
This type is the Err value for most of this crate.
It is compatible with the annotate_snippets
library.
That means that nice rust-style error messages can be printed.
Variants§
ParseError(Box<ParseError>)
An error which happens when parsing the input
LangError(Box<LangError>)
An error which happens when compiling the input
Implementations§
Trait Implementations§
source§impl<'a> AsAnnotationSnippet<'a> for SingleCompileError
impl<'a> AsAnnotationSnippet<'a> for SingleCompileError
fn as_annotation_snippet(&self, ctx: &'a CompileContext) -> SnippetOwned<'a>
fn to_display_list(&self, ctx: &'a CompileContext) -> String
source§impl Debug for SingleCompileError
impl Debug for SingleCompileError
source§impl From<LangError> for SingleCompileError
impl From<LangError> for SingleCompileError
source§impl From<ParseError> for SingleCompileError
impl From<ParseError> for SingleCompileError
source§fn from(parse_error: ParseError) -> Self
fn from(parse_error: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for SingleCompileError
impl Send for SingleCompileError
impl Sync for SingleCompileError
impl Unpin for SingleCompileError
impl UnwindSafe for SingleCompileError
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