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
Error on AST to HIR lowering
Error on binder pass
Error on type inference pass
Error on HIT to MIR lowering
TypeCheckError(TypeCheckError)Error on type checking
Implementations
impl CompileError[src]
impl CompileError[src]pub fn pretty_desc(&self, source: &str) -> String[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 Debug for CompileError[src]impl From<TypeCheckError> for CompileError[src]
impl From<TypeCheckError> for CompileError[src]fn from(original: TypeCheckError) -> CompileError[src]
fn from(original: TypeCheckError) -> CompileError[src]Performs the conversion.
impl From<Vec<ParseError, Global>> for CompileError[src]
impl From<Vec<ParseError, Global>> for CompileError[src]fn from(original: Vec<ParseError>) -> CompileError[src]
fn from(original: Vec<ParseError>) -> CompileError[src]Performs the conversion.
impl PartialEq<CompileError> for CompileError[src]
impl PartialEq<CompileError> for CompileError[src]fn eq(&self, other: &CompileError) -> bool[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]
fn ne(&self, other: &CompileError) -> bool[src]This method tests for !=.
impl StructuralPartialEq for CompileError[src]
Auto Trait Implementations
impl RefUnwindSafe for CompileError
impl Send for CompileError
impl Sync for CompileError
impl Unpin for CompileError
impl UnwindSafe for CompileError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<F> TryExtractInto<F> for F[src]
impl<F> TryExtractInto<F> for F[src]pub fn try_extract_into<T>(self) -> Result<T, TryExtractFromError> where
T: TryExtractFrom<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<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,