Enum netsblox_vm::bytecode::CompileError  
source · pub enum CompileError<'a> {
    UnsupportedStmt {
        kind: &'a StmtKind,
    },
    UnsupportedExpr {
        kind: &'a ExprKind,
    },
    UnsupportedEvent {
        kind: &'a HatKind,
    },
    BadKeycode {
        key: &'a str,
    },
    InvalidLocation {
        loc: &'a str,
    },
    BadNumber {
        error: NumberError,
    },
    UndefinedRef {
        value: &'a Value,
    },
    CurrentlyUnsupported {
        info: String,
    },
    InvalidBlock {
        loc: Option<&'a str>,
    },
}Expand description
A NetsBlox project compile error generated by ByteCode::compile.
Variants§
UnsupportedStmt
UnsupportedExpr
UnsupportedEvent
BadKeycode
InvalidLocation
BadNumber
Fields
§
error: NumberErrorUndefinedRef
CurrentlyUnsupported
InvalidBlock
Trait Implementations§
source§impl<'a> Debug for CompileError<'a>
 
impl<'a> Debug for CompileError<'a>
source§impl<'a> From<CompileError<'a>> for FromAstError<'a>
 
impl<'a> From<CompileError<'a>> for FromAstError<'a>
source§fn from(error: CompileError<'a>) -> Self
 
fn from(error: CompileError<'a>) -> Self
Converts to this type from the input type.
source§impl From<NumberError> for CompileError<'_>
 
impl From<NumberError> for CompileError<'_>
source§fn from(error: NumberError) -> Self
 
fn from(error: NumberError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for CompileError<'a>
impl<'a> !Send for CompileError<'a>
impl<'a> !Sync for CompileError<'a>
impl<'a> Unpin for CompileError<'a>
impl<'a> UnwindSafe for CompileError<'a>
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