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

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

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]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl From<TypeCheckError> for CompileError[src]

fn from(original: TypeCheckError) -> CompileError[src]

Performs the conversion.

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

fn from(original: Vec<ParseError>) -> CompileError[src]

Performs the conversion.

impl PartialEq<CompileError> for CompileError[src]

fn eq(&self, other: &CompileError) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &CompileError) -> bool[src]

This method tests for !=.

impl StructuralPartialEq for CompileError[src]

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

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

pub fn try_extract_into<T>(self) -> Result<T, TryExtractFromError> where
    T: TryExtractFrom<F>, 
[src]

Extract value of the given type from any type (e.g. [‘Constant’], super::value::Value) on which TryExtractFrom is implemented Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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

pub fn vzip(self) -> V