pub enum JingoError {
ScanningError(ScanningError),
ParsingError(ParsingError),
Unimplemented(Option<String>),
Unknown,
}
Expand description
Main error enum for all of jingo-lib, containing mostly module-level error enums
The goal of this enum is to provide a single overall representation for all errors in this compiler to make much easier downstream compatibility whilst still having seperate logical groups (like lexing with ScanningError) seperated
Variants§
ScanningError(ScanningError)
Downstream error when scanning, see ScanningError for more infomation.
ParsingError(ParsingError)
Downstream error when parsing, see ParsingError for more infomation.
Unimplemented(Option<String>)
A part of the compiler is unfinished that the user tried to access with some extra info in the form of an optional String appended onto the end in brackets.
This shouldn’t ever happen in public releases without docs saying it will happen!
Unknown
See crate::error documentation for more on this.
Trait Implementations§
Source§impl Clone for JingoError
impl Clone for JingoError
Source§fn clone(&self) -> JingoError
fn clone(&self) -> JingoError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JingoError
impl Debug for JingoError
Source§impl PartialEq for JingoError
impl PartialEq for JingoError
Source§impl PartialOrd for JingoError
impl PartialOrd for JingoError
impl StructuralPartialEq for JingoError
Auto Trait Implementations§
impl Freeze for JingoError
impl RefUnwindSafe for JingoError
impl Send for JingoError
impl Sync for JingoError
impl Unpin for JingoError
impl UnwindSafe for JingoError
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