pub enum ValidationErrorKind {
InvalidProtoReference,
InvalidStringReference,
InvalidConstantReference,
InvalidAuxArity,
InvalidAuxPayload,
InvalidJumpTarget,
InvalidRegister,
InvalidLineInfo,
InvalidDebugInfo,
InvalidFeedbackSlot,
InvalidClosureCapture,
InvalidProtoMetadata,
}Expand description
Structural bytecode validation error categories.
Variants§
InvalidProtoReference
A proto id does not refer to an existing proto.
InvalidStringReference
A string id does not refer to the string table or the empty string.
InvalidConstantReference
A constant id does not refer to the proto constant table.
InvalidAuxArity
An instruction has the wrong static AUX arity for its opcode.
InvalidAuxPayload
An AUX payload references impossible data.
InvalidJumpTarget
A jump target is outside the proto or lands inside an AUX word.
InvalidRegister
A register operand exceeds the proto stack size.
InvalidLineInfo
Line info is malformed for the proto instruction words.
InvalidDebugInfo
Debug info is malformed for the proto.
InvalidFeedbackSlot
Feedback metadata is malformed for the proto.
InvalidClosureCapture
Closure capture instructions do not match the referenced child proto.
InvalidProtoMetadata
Proto metadata is malformed.
Trait Implementations§
Source§impl Clone for ValidationErrorKind
impl Clone for ValidationErrorKind
Source§fn clone(&self) -> ValidationErrorKind
fn clone(&self) -> ValidationErrorKind
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 moreimpl Copy for ValidationErrorKind
Source§impl Debug for ValidationErrorKind
impl Debug for ValidationErrorKind
Source§impl<'de> Deserialize<'de> for ValidationErrorKind
impl<'de> Deserialize<'de> for ValidationErrorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ValidationErrorKind
Source§impl PartialEq for ValidationErrorKind
impl PartialEq for ValidationErrorKind
Source§fn eq(&self, other: &ValidationErrorKind) -> bool
fn eq(&self, other: &ValidationErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ValidationErrorKind
impl Serialize for ValidationErrorKind
impl StructuralPartialEq for ValidationErrorKind
Auto Trait Implementations§
impl Freeze for ValidationErrorKind
impl RefUnwindSafe for ValidationErrorKind
impl Send for ValidationErrorKind
impl Sync for ValidationErrorKind
impl Unpin for ValidationErrorKind
impl UnsafeUnpin for ValidationErrorKind
impl UnwindSafe for ValidationErrorKind
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