pub enum ValidateErrorKind {
}Variants§
EmptyCode
FallsOffEnd
The last instruction falls through past the end of the code.
LayoutOverflow
register_count is below 1 + parameters + locals.
Register(u32)
WideRegister(u32)
CallWindow
A call’s callee, receiver or arguments reach past register_count.
RegisterRange
The element range of NewArray reaches past register_count.
Target(u32)
Constant(u32)
Child(u32)
UnpublishedChild(u32)
A child id that is not yet published.
Capture(u32)
ChildCapture(u32)
A child captures a register this unit does not have.
HandlerRange
start < end <= code.len() does not hold.
HandlerNesting
Two handler ranges overlap without nesting, or an enclosing handler precedes one nested in it.
LineTable
The position table is out of pc order or names a pc past the
code.
Flags
An arrow function marked as a constructor.
Site(u32)
A cache site at or past the unit’s ic_count.
Spill
A spill access that does not name the unit’s spill register and one of its slots.
Trait Implementations§
Source§impl Clone for ValidateErrorKind
impl Clone for ValidateErrorKind
impl Copy for ValidateErrorKind
Source§impl Debug for ValidateErrorKind
impl Debug for ValidateErrorKind
impl Eq for ValidateErrorKind
Source§impl PartialEq for ValidateErrorKind
impl PartialEq for ValidateErrorKind
impl StructuralPartialEq for ValidateErrorKind
Auto Trait Implementations§
impl Freeze for ValidateErrorKind
impl RefUnwindSafe for ValidateErrorKind
impl Send for ValidateErrorKind
impl Sync for ValidateErrorKind
impl Unpin for ValidateErrorKind
impl UnsafeUnpin for ValidateErrorKind
impl UnwindSafe for ValidateErrorKind
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