pub enum DecodingError {
    UnexpectedEof {
        position: usize,
    },
    InvalidOpcode {
        position: usize,
        code: u8,
    },
    InvalidExtendedOpcode {
        position: usize,
        code: u16,
    },
    InvalidReg {
        position: usize,
        reg: u8,
    },
}Available on crate feature 
decode only.Expand description
An error when decoding Pulley bytecode.
Variants§
UnexpectedEof
Reached the end of the bytecode stream before we finished decoding a single bytecode.
InvalidOpcode
Found an invalid opcode.
Fields
InvalidExtendedOpcode
Found an invalid extended opcode.
Fields
InvalidReg
Found an invalid register.
Trait Implementations§
Source§impl Debug for DecodingError
 
impl Debug for DecodingError
Source§impl Display for DecodingError
 
impl Display for DecodingError
Source§impl Error for DecodingError
Available on crate feature std only. 
impl Error for DecodingError
Available on crate feature 
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
 
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DecodingError
impl RefUnwindSafe for DecodingError
impl Send for DecodingError
impl Sync for DecodingError
impl Unpin for DecodingError
impl UnwindSafe for DecodingError
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