pub enum Error {
Syntax(SyntaxError),
Runtime(LuaError),
}Expand description
Combined error type returned by Vm::eval and friends — either the
chunk failed to parse / compile, or it raised at runtime.
Variants§
Syntax(SyntaxError)
Parse or compile failure.
Runtime(LuaError)
Runtime error raised during execution.
Trait Implementations§
Source§impl From<SyntaxError> for Error
impl From<SyntaxError> for Error
Source§fn from(e: SyntaxError) -> Error
fn from(e: SyntaxError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !Send for Error
impl !Sync for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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