pub enum DecodeError {
UnknownOpcode,
UnexpectedEOF,
Overflow,
}
Expand description
This type is returned by fn InstructionSet::decode(...)
in case no instruction could be
decoded.
Variants§
UnknownOpcode
This variant is emitted if the slice contains no known opcode.
UnexpectedEOF
Is emitted if the slice ended before a complete opcode could be found. Extending the end of the slice could lead to successful decoding.
Overflow
Is emitted when the target variable overflows during decoding. Overflows should be caught at compiletime so encountering this error is currently a bug. This might change in the future.
Trait Implementations§
Source§impl Debug for DecodeError
impl Debug for DecodeError
Source§impl PartialEq for DecodeError
impl PartialEq for DecodeError
Source§impl PartialOrd for DecodeError
impl PartialOrd for DecodeError
impl StructuralPartialEq for DecodeError
Auto Trait Implementations§
impl Freeze for DecodeError
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
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