pub enum CompilerError {
Lexer(LexerError),
Grammar(GrammarError),
Linker(LinkerError),
Generator(GeneratorError),
}
Variants§
Implementations§
Source§impl CompilerError
impl CompilerError
pub fn contextualize(&self, input: &str) -> String
Trait Implementations§
Source§impl Clone for CompilerError
impl Clone for CompilerError
Source§fn clone(&self) -> CompilerError
fn clone(&self) -> CompilerError
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 CompilerError
impl Debug for CompilerError
Source§impl Display for CompilerError
impl Display for CompilerError
Source§impl From<GeneratorError> for CompilerError
impl From<GeneratorError> for CompilerError
Source§fn from(value: GeneratorError) -> Self
fn from(value: GeneratorError) -> Self
Converts to this type from the input type.
Source§impl From<GrammarError> for CompilerError
impl From<GrammarError> for CompilerError
Source§fn from(value: GrammarError) -> Self
fn from(value: GrammarError) -> Self
Converts to this type from the input type.
Source§impl From<LexerError> for CompilerError
impl From<LexerError> for CompilerError
Source§fn from(value: LexerError) -> Self
fn from(value: LexerError) -> Self
Converts to this type from the input type.
Source§impl From<LinkerError> for CompilerError
impl From<LinkerError> for CompilerError
Source§fn from(value: LinkerError) -> Self
fn from(value: LinkerError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CompilerError
impl PartialEq for CompilerError
impl StructuralPartialEq for CompilerError
Auto Trait Implementations§
impl Freeze for CompilerError
impl !RefUnwindSafe for CompilerError
impl !Send for CompilerError
impl !Sync for CompilerError
impl Unpin for CompilerError
impl !UnwindSafe for CompilerError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)