pub enum ScriptCompileError {
IllFormedSource {
unit_offset: usize,
},
Syntax {
message: String,
line: u32,
column: u32,
},
Unsupported {
message: String,
line: u32,
column: u32,
},
Capacity {
message: String,
},
}Expand description
The closed set of classic-script compilation failures, in compiler terms.
Variants§
IllFormedSource
The source contained an unpaired UTF-16 surrogate at this code-unit offset.
Syntax
Parsing or lowering found invalid JavaScript syntax.
Unsupported
The source used syntax outside the supported classic-script profile.
Capacity
A fixed compiler or bytecode capacity was exhausted.
Trait Implementations§
Source§impl Clone for ScriptCompileError
impl Clone for ScriptCompileError
Source§fn clone(&self) -> ScriptCompileError
fn clone(&self) -> ScriptCompileError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScriptCompileError
impl Debug for ScriptCompileError
impl Eq for ScriptCompileError
Source§impl PartialEq for ScriptCompileError
impl PartialEq for ScriptCompileError
impl StructuralPartialEq for ScriptCompileError
Auto Trait Implementations§
impl Freeze for ScriptCompileError
impl RefUnwindSafe for ScriptCompileError
impl Send for ScriptCompileError
impl Sync for ScriptCompileError
impl Unpin for ScriptCompileError
impl UnsafeUnpin for ScriptCompileError
impl UnwindSafe for ScriptCompileError
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