pub enum CompileError {
Show 17 variants
UnexpectedEmptyList(Span),
UndefinedVariable(Identifier),
RuntimeError(Box<RuntimeError>),
NotVariableTransformer,
CompileBodyError(CompileBodyError),
CompileLetError(CompileLetError),
CompileFuncCallError(CompileFuncCallError),
CompileIfError(CompileIfError),
CompileDefineError(CompileDefineError),
CompileDefineSyntaxError(CompileDefineSyntaxError),
CompileQuoteError(CompileQuoteError),
CompileSetError(CompileSetError),
CompileLambdaError(CompileLambdaError),
CompileSyntaxError(CompileSyntaxError),
CompileSyntaxCaseError(CompileSyntaxCaseError),
CompileSyntaxRulesError(CompileSyntaxRulesError),
CompileApplyError(CompileApplyError),
}
Variants§
UnexpectedEmptyList(Span)
UndefinedVariable(Identifier)
RuntimeError(Box<RuntimeError>)
NotVariableTransformer
CompileBodyError(CompileBodyError)
CompileLetError(CompileLetError)
CompileFuncCallError(CompileFuncCallError)
CompileIfError(CompileIfError)
CompileDefineError(CompileDefineError)
CompileDefineSyntaxError(CompileDefineSyntaxError)
CompileQuoteError(CompileQuoteError)
CompileSetError(CompileSetError)
CompileLambdaError(CompileLambdaError)
CompileSyntaxError(CompileSyntaxError)
CompileSyntaxCaseError(CompileSyntaxCaseError)
CompileSyntaxRulesError(CompileSyntaxRulesError)
CompileApplyError(CompileApplyError)
Trait Implementations§
Source§impl Clone for CompileError
impl Clone for CompileError
Source§fn clone(&self) -> CompileError
fn clone(&self) -> CompileError
Returns a duplicate 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 CompileError
impl Debug for CompileError
Source§impl From<Box<RuntimeError>> for CompileError
impl From<Box<RuntimeError>> for CompileError
Source§fn from(value: Box<RuntimeError>) -> Self
fn from(value: Box<RuntimeError>) -> Self
Converts to this type from the input type.
Source§impl From<CompileApplyError> for CompileError
impl From<CompileApplyError> for CompileError
Source§fn from(value: CompileApplyError) -> Self
fn from(value: CompileApplyError) -> Self
Converts to this type from the input type.
Source§impl From<CompileBodyError> for CompileError
impl From<CompileBodyError> for CompileError
Source§fn from(value: CompileBodyError) -> Self
fn from(value: CompileBodyError) -> Self
Converts to this type from the input type.
Source§impl From<CompileDefineError> for CompileError
impl From<CompileDefineError> for CompileError
Source§fn from(value: CompileDefineError) -> Self
fn from(value: CompileDefineError) -> Self
Converts to this type from the input type.
Source§impl From<CompileDefineSyntaxError> for CompileError
impl From<CompileDefineSyntaxError> for CompileError
Source§fn from(value: CompileDefineSyntaxError) -> Self
fn from(value: CompileDefineSyntaxError) -> Self
Converts to this type from the input type.
Source§impl From<CompileError> for CompileApplyError
impl From<CompileError> for CompileApplyError
Source§fn from(ce: CompileError) -> Self
fn from(ce: CompileError) -> Self
Converts to this type from the input type.
Source§impl From<CompileError> for CompileBodyError
impl From<CompileError> for CompileBodyError
Source§fn from(ce: CompileError) -> Self
fn from(ce: CompileError) -> Self
Converts to this type from the input type.
Source§impl From<CompileError> for CompileDefineError
impl From<CompileError> for CompileDefineError
Source§fn from(ce: CompileError) -> Self
fn from(ce: CompileError) -> Self
Converts to this type from the input type.
Source§impl From<CompileError> for CompileDefineSyntaxError
impl From<CompileError> for CompileDefineSyntaxError
Source§fn from(ce: CompileError) -> Self
fn from(ce: CompileError) -> Self
Converts to this type from the input type.
Source§impl From<CompileError> for CompileFuncCallError
impl From<CompileError> for CompileFuncCallError
Source§fn from(ce: CompileError) -> Self
fn from(ce: CompileError) -> Self
Converts to this type from the input type.
Source§impl From<CompileError> for CompileIfError
impl From<CompileError> for CompileIfError
Source§fn from(ce: CompileError) -> Self
fn from(ce: CompileError) -> Self
Converts to this type from the input type.
Source§impl From<CompileError> for CompileLetBindingError
impl From<CompileError> for CompileLetBindingError
Source§fn from(ce: CompileError) -> Self
fn from(ce: CompileError) -> Self
Converts to this type from the input type.
Source§impl From<CompileError> for CompileSetError
impl From<CompileError> for CompileSetError
Source§fn from(ce: CompileError) -> Self
fn from(ce: CompileError) -> Self
Converts to this type from the input type.
Source§impl From<CompileError> for CompileSyntaxCaseError
impl From<CompileError> for CompileSyntaxCaseError
Source§fn from(ce: CompileError) -> Self
fn from(ce: CompileError) -> Self
Converts to this type from the input type.
Source§impl<'e> From<CompileError> for EvalError<'e>
impl<'e> From<CompileError> for EvalError<'e>
Source§fn from(value: CompileError) -> Self
fn from(value: CompileError) -> Self
Converts to this type from the input type.
Source§impl From<CompileError> for RuntimeError
impl From<CompileError> for RuntimeError
Source§fn from(ce: CompileError) -> Self
fn from(ce: CompileError) -> Self
Converts to this type from the input type.
Source§impl From<CompileFuncCallError> for CompileError
impl From<CompileFuncCallError> for CompileError
Source§fn from(value: CompileFuncCallError) -> Self
fn from(value: CompileFuncCallError) -> Self
Converts to this type from the input type.
Source§impl From<CompileIfError> for CompileError
impl From<CompileIfError> for CompileError
Source§fn from(value: CompileIfError) -> Self
fn from(value: CompileIfError) -> Self
Converts to this type from the input type.
Source§impl From<CompileLambdaError> for CompileError
impl From<CompileLambdaError> for CompileError
Source§fn from(value: CompileLambdaError) -> Self
fn from(value: CompileLambdaError) -> Self
Converts to this type from the input type.
Source§impl From<CompileLetError> for CompileError
impl From<CompileLetError> for CompileError
Source§fn from(value: CompileLetError) -> Self
fn from(value: CompileLetError) -> Self
Converts to this type from the input type.
Source§impl From<CompileQuoteError> for CompileError
impl From<CompileQuoteError> for CompileError
Source§fn from(value: CompileQuoteError) -> Self
fn from(value: CompileQuoteError) -> Self
Converts to this type from the input type.
Source§impl From<CompileSetError> for CompileError
impl From<CompileSetError> for CompileError
Source§fn from(value: CompileSetError) -> Self
fn from(value: CompileSetError) -> Self
Converts to this type from the input type.
Source§impl From<CompileSyntaxCaseError> for CompileError
impl From<CompileSyntaxCaseError> for CompileError
Source§fn from(value: CompileSyntaxCaseError) -> Self
fn from(value: CompileSyntaxCaseError) -> Self
Converts to this type from the input type.
Source§impl From<CompileSyntaxError> for CompileError
impl From<CompileSyntaxError> for CompileError
Source§fn from(value: CompileSyntaxError) -> Self
fn from(value: CompileSyntaxError) -> Self
Converts to this type from the input type.
Source§impl From<CompileSyntaxRulesError> for CompileError
impl From<CompileSyntaxRulesError> for CompileError
Source§fn from(value: CompileSyntaxRulesError) -> Self
fn from(value: CompileSyntaxRulesError) -> Self
Converts to this type from the input type.
Source§impl From<Identifier> for CompileError
impl From<Identifier> for CompileError
Source§fn from(value: Identifier) -> Self
fn from(value: Identifier) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeError> for CompileError
impl From<RuntimeError> for CompileError
Source§fn from(re: RuntimeError) -> Self
fn from(re: RuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CompileError
impl !RefUnwindSafe for CompileError
impl Send for CompileError
impl Sync for CompileError
impl Unpin for CompileError
impl !UnwindSafe for CompileError
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.