[−][src]Enum rune::CompileError
Error when encoding AST.
Variants
An internal encoder invariant was broken.
Fields of Internal
Unit error from runestick encoding.
Fields of UnitError
error: UnitError
Source error.
Error for resolving values from source files.
Fields of ParseError
error: ParseError
Source error.
Error when trying to index a duplicate item.
Fields of ItemConflict
Error for variable conflicts.
Fields of VariableConflict
Error for missing local variables.
Fields of MissingLocal
Error for missing types.
Tried to use a module that was missing.
Fields of MissingModule
A specific label is missing.
Fields of MissingLabel
span: Span
The span of the missing label.
Unsupported wildcard component in use.
Fields of UnsupportedWildcard
span: Span
Where the wildcard import is.
Tried to use a meta as an async block for which it is not supported.
Fields of UnsupportedAsyncBlock
Tried to declare an instance function on a type for which it is not supported.
Fields of UnsupportedInstanceFunction
Tried to treat something as a value which is not supported.
Fields of UnsupportedValue
Tried to treat something as a type which is not supported.
Fields of UnsupportedType
self
occured in an unsupported position.
Fields of UnsupportedSelf
span: Span
Where it occured.
Encountered a unary operator we can't encode.
Fields of UnsupportedUnaryOp
Encountered a binary operator we can't encode.
Cannot crate object literal of the given type.
Fields of UnsupportedLitObject
Key is not present in the given type literal.
Fields of LitObjectMissingField
Key is not present in the given type literal.
Fields of LitObjectNotField
When we encounter an expression that cannot be assigned to.
Fields of UnsupportedAssignExpr
span: Span
The thing being assigned to.
Unsupported assignment operator.
When we encounter an expression that doesn't have a stack location and can't be referenced.
Fields of UnsupportedRef
span: Span
The thing we are taking the reference of.
Await has been used in a position where it's not supported.
Fields of UnsupportedAwait
span: Span
The location of the await.
Using a pattern that is not supported in a select.
Fields of UnsupportedSelectPattern
span: Span
The span of the pattern.
Unsupported field access.
Fields of UnsupportedFieldAccess
span: Span
The field access expression.
A meta item that is not supported in the given pattern position.
Fields of UnsupportedArgumentCount
A meta item that is not supported in the given pattern position.
Fields of UnsupportedMetaPattern
A meta item that is not supported in the given closure position.
Fields of UnsupportedMetaClosure
The pattern is not supported.
Fields of UnsupportedPattern
span: Span
Span where the error occured.
The pattern is not supported as a binding.
Fields of UnsupportedBinding
span: Span
Span where the error occured.
Error raised when trying to use a break outside of a loop.
Fields of BreakOutsideOfLoop
span: Span
The span of the illegal break.
An error raised when attempting to return locally created references from a function.
Fields of ReturnLocalReferences
Attempting to use a float in a match pattern.
Fields of MatchFloatInPattern
span: Span
Where the float was used.
Attempting to create an object with a duplicate object key.
Fields of DuplicateObjectKey
Attempt to call something that is not a function.
Fields of MissingFunction
Attempt to yield outside of a function or a closure.
Fields of YieldOutsideFunction
span: Span
The span of the unsupported yield.
Attempt to await outside of a function or a closure.
Fields of AwaitOutsideFunction
span: Span
The span of the unsupported await.
Attempt to declare a function which takes self
outside of an impl
block.
Fields of InstanceFunctionOutsideImpl
span: Span
Where the function is declared.
Import doesn't exist.
Fields of MissingPreludeModule
item: Item
The item that didn't exist.
Trying to use an expression as async when it's not supported.
Fields of UnsupportedAsyncExpr
span: Span
Where the expression is.
Implementations
impl CompileError
[src]
pub fn internal(msg: &'static str, span: Span) -> Self
[src]
Construct an internal error.
This should be used for programming invariants of the encoder which are broken for some reason.
impl CompileError
[src]
Trait Implementations
impl Debug for CompileError
[src]
impl Display for CompileError
[src]
impl Error for CompileError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<ParseError> for CompileError
[src]
fn from(source: ParseError) -> Self
[src]
impl From<UnitError> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,