Struct rune::CompileError[][src]

pub struct CompileError { /* fields omitted */ }

An error raised during compiling.

Implementations

impl CompileError[src]

pub fn new<S, K>(spanned: S, kind: K) -> Self where
    S: Spanned,
    CompileErrorKind: From<K>, 
[src]

Construct a new scope error.

pub fn msg<S>(spanned: S, message: &'static str) -> Self where
    S: Spanned
[src]

Construct an custom error.

This should be used for programming invariants of the encoder which are broken for some reason.

pub fn kind(&self) -> &CompileErrorKind[src]

Get the kind of the error.

pub fn into_kind(self) -> CompileErrorKind[src]

Convert into the kind of the error.

impl CompileError[src]

pub fn unsupported_super<S>(spanned: S) -> impl FnOnce() -> Self where
    S: Spanned
[src]

Construct a factor for unsupported super.

pub fn experimental<S>(spanned: S, msg: &'static str) -> Self where
    S: Spanned
[src]

Construct an experimental error.

This should be used when an experimental feature is used which hasn’t been enabled.

pub fn expected_meta<S>(
    spanned: S,
    meta: CompileMeta,
    expected: &'static str
) -> Self where
    S: Spanned
[src]

Error when we got mismatched meta.

Trait Implementations

impl Debug for CompileError[src]

impl Display for CompileError[src]

impl Error for CompileError[src]

impl From<CompileError> for ErrorKind[src]

impl From<IrError> for CompileError[src]

impl From<ParseError> for CompileError[src]

impl From<QueryError> for CompileError[src]

impl From<ResolveError> for CompileError[src]

impl Spanned 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> ToString for T where
    T: Display + ?Sized
[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.