pub struct CompileError {
pub kind: ErrorKind,
pub message: String,
pub thrown: Option<Value>,
pub location: Option<(Box<str>, u32, u32)>,
}Expand description
A failed compilation: the error to throw.
Fields§
§kind: ErrorKind§message: String§thrown: Option<Value>A value the embedder threw instead (a module loader’s own error
object): thrown as is, kind and message unused. It must stay
rooted until the core throws it (a handle the embedder releases
after the entry).
location: Option<(Box<str>, u32, u32)>Where in which source the error is (a syntax error’s file, line and
column, one-based): the error’s stack starts with it, as
QuickJS’s does.
Implementations§
Trait Implementations§
Source§impl Clone for CompileError
impl Clone for CompileError
Auto Trait Implementations§
impl Freeze for CompileError
impl RefUnwindSafe for CompileError
impl Send for CompileError
impl Sync for CompileError
impl Unpin for CompileError
impl UnsafeUnpin 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