Struct debris_error::LangError
source · pub struct LangError {
pub kind: LangErrorKind,
pub span: Span,
backtrace: Backtrace,
}
Expand description
A generic error which gets thrown when compiling
Contains a more specific LangErrorKind
Fields§
§kind: LangErrorKind
The specific error
span: Span
§backtrace: Backtrace
In debug mode stores the backtrace to provide additional debugging help
Implementations§
Trait Implementations§
source§impl<'a> AsAnnotationSnippet<'a> for LangError
impl<'a> AsAnnotationSnippet<'a> for LangError
fn as_annotation_snippet(&self, ctx: &'a CompileContext) -> SnippetOwned<'a>
fn to_display_list(&self, ctx: &'a CompileContext) -> String
Auto Trait Implementations§
impl RefUnwindSafe for LangError
impl Send for LangError
impl Sync for LangError
impl Unpin for LangError
impl UnwindSafe for LangError
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