Enum ergoscript_compiler::compiler::CompileError[][src]

pub enum CompileError {
    ParseError(Vec<ParseError>),
    HirLoweringError(HirLoweringError),
    BinderError(BinderError),
    TypeInferenceError(TypeInferenceError),
    MirLoweringError(MirLoweringError),
    TypeCheckError(TypeCheckError),
}

Compilation errors

Variants

ParseError(Vec<ParseError>)

Parser error

HirLoweringError(HirLoweringError)

Error on AST to HIR lowering

BinderError(BinderError)

Error on binder pass

TypeInferenceError(TypeInferenceError)

Error on type inference pass

MirLoweringError(MirLoweringError)

Error on HIT to MIR lowering

TypeCheckError(TypeCheckError)

Error on type checking

Implementations

impl CompileError[src]

pub fn pretty_desc(&self, source: &str) -> String[src]

Pretty formatted error with CST/AST/IR, etc.

Trait Implementations

impl Debug for CompileError[src]

impl From<TypeCheckError> for CompileError[src]

impl From<Vec<ParseError, Global>> for CompileError[src]

impl PartialEq<CompileError> for CompileError[src]

impl StructuralPartialEq for CompileError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<F> TryExtractInto<F> for F[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,