pub enum ValidationErrorKind {
Show 14 variants
UnsupportedVersion,
InvalidProtoReference,
InvalidStringReference,
InvalidConstantReference,
InconsistentInstruction,
InvalidAuxArity,
InvalidAuxPayload,
InvalidJumpTarget,
InvalidRegister,
InvalidLineInfo,
InvalidDebugInfo,
InvalidFeedbackSlot,
InvalidClosureCapture,
InvalidProtoMetadata,
}Expand description
Structural bytecode validation error categories.
Variants§
UnsupportedVersion
The chunk uses a bytecode version outside the active policy.
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.
InconsistentInstruction
An instruction’s pre-decoded operand fields do not match its header word.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
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
self and other values to be equal, and is used by ==.