Enum papyri_lang::errors::PapyriError
source · pub enum PapyriError {
ModuleError(ModuleError),
NameError(NameError),
RuntimeError(RuntimeError),
SyntaxError(SyntaxError),
TypeError(TypeError),
Warning(Warning),
AlreadyReported,
}
Expand description
Represents an error or warning which occurs while attempting to compile a Papyri source file.
Variants§
ModuleError(ModuleError)
NameError(NameError)
RuntimeError(RuntimeError)
SyntaxError(SyntaxError)
TypeError(TypeError)
Warning(Warning)
AlreadyReported
Trait Implementations§
source§impl Debug for PapyriError
impl Debug for PapyriError
source§impl Display for PapyriError
impl Display for PapyriError
source§impl From<AlreadyReported> for PapyriError
impl From<AlreadyReported> for PapyriError
source§fn from(_: AlreadyReported) -> PapyriError
fn from(_: AlreadyReported) -> PapyriError
Converts to this type from the input type.
source§impl From<ModuleError> for PapyriError
impl From<ModuleError> for PapyriError
source§fn from(e: ModuleError) -> PapyriError
fn from(e: ModuleError) -> PapyriError
Converts to this type from the input type.
source§impl From<NameError> for PapyriError
impl From<NameError> for PapyriError
source§fn from(e: NameError) -> PapyriError
fn from(e: NameError) -> PapyriError
Converts to this type from the input type.
source§impl From<RuntimeError> for PapyriError
impl From<RuntimeError> for PapyriError
source§fn from(e: RuntimeError) -> PapyriError
fn from(e: RuntimeError) -> PapyriError
Converts to this type from the input type.
source§impl From<SyntaxError> for PapyriError
impl From<SyntaxError> for PapyriError
source§fn from(e: SyntaxError) -> PapyriError
fn from(e: SyntaxError) -> PapyriError
Converts to this type from the input type.
source§impl From<TypeError> for PapyriError
impl From<TypeError> for PapyriError
source§fn from(e: TypeError) -> PapyriError
fn from(e: TypeError) -> PapyriError
Converts to this type from the input type.
source§impl From<Warning> for PapyriError
impl From<Warning> for PapyriError
source§fn from(e: Warning) -> PapyriError
fn from(e: Warning) -> PapyriError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PapyriError
impl !Send for PapyriError
impl !Sync for PapyriError
impl Unpin for PapyriError
impl !UnwindSafe for PapyriError
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