pub enum BytecodeReadError {
Show 13 variants
ErrorBytecode {
message: Vec<u8>,
},
UnexpectedEof {
offset: usize,
requested: usize,
available: usize,
},
InvalidVersion {
version: u8,
},
InvalidTypeVersion {
version: u8,
},
InvalidTypeInfo {
offset: usize,
},
InvalidDebugInfo {
offset: usize,
},
InvalidOpcode {
opcode: u8,
offset: usize,
},
InvalidConstantTag {
tag: u8,
offset: usize,
},
InvalidFeedbackSlotKind {
kind: u8,
offset: usize,
},
InvalidStringId {
id: u32,
},
InvalidFunctionId {
id: u32,
},
FunctionGraphTooLarge {
blocks: usize,
},
MissingRegisterProducer {
block: usize,
register: u8,
},
}Variants§
ErrorBytecode
UnexpectedEof
InvalidVersion
InvalidTypeVersion
InvalidTypeInfo
InvalidDebugInfo
InvalidOpcode
InvalidConstantTag
InvalidFeedbackSlotKind
InvalidStringId
InvalidFunctionId
FunctionGraphTooLarge
MissingRegisterProducer
Implementations§
Source§impl BytecodeReadError
impl BytecodeReadError
pub fn error_bytecode_message(&self) -> Option<&[u8]>
Trait Implementations§
Source§impl Clone for BytecodeReadError
impl Clone for BytecodeReadError
Source§fn clone(&self) -> BytecodeReadError
fn clone(&self) -> BytecodeReadError
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 BytecodeReadError
impl Debug for BytecodeReadError
impl Eq for BytecodeReadError
Source§impl PartialEq for BytecodeReadError
impl PartialEq for BytecodeReadError
impl StructuralPartialEq for BytecodeReadError
Auto Trait Implementations§
impl Freeze for BytecodeReadError
impl RefUnwindSafe for BytecodeReadError
impl Send for BytecodeReadError
impl Sync for BytecodeReadError
impl Unpin for BytecodeReadError
impl UnsafeUnpin for BytecodeReadError
impl UnwindSafe for BytecodeReadError
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