pub enum StandardPartialDecoderError {
ExhaustedInput,
InvalidOpcode,
InvalidOperand,
IncompleteDecoder,
}
Expand description
a slightly less minimal enum DecodeError
. similar to StandardDecodeError
, this is an
anti-boilerplate measure. it additionally provides IncompleteDecoder
, making it suitable to
represent error kinds for decoders that are … not yet complete.
Variants§
Trait Implementations§
Source§impl Clone for StandardPartialDecoderError
impl Clone for StandardPartialDecoderError
Source§fn clone(&self) -> StandardPartialDecoderError
fn clone(&self) -> StandardPartialDecoderError
Returns a copy of the value. Read more
1.0.0 · 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 StandardPartialDecoderError
impl Debug for StandardPartialDecoderError
Source§impl DecodeError for StandardPartialDecoderError
impl DecodeError for StandardPartialDecoderError
Source§fn data_exhausted(&self) -> bool
fn data_exhausted(&self) -> bool
did the decoder fail because it reached the end of input?
Source§fn bad_opcode(&self) -> bool
fn bad_opcode(&self) -> bool
did the decoder error because the instruction’s opcode is invalid? Read more
Source§fn bad_operand(&self) -> bool
fn bad_operand(&self) -> bool
did the decoder error because an operand of the instruction to decode is invalid? Read more
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
a human-friendly description of this decode error.
Source§impl Error for StandardPartialDecoderError
impl Error for StandardPartialDecoderError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl From<ReadError> for StandardPartialDecoderError
impl From<ReadError> for StandardPartialDecoderError
Source§fn from(_: ReadError) -> StandardPartialDecoderError
fn from(_: ReadError) -> StandardPartialDecoderError
Converts to this type from the input type.
impl Copy for StandardPartialDecoderError
impl Eq for StandardPartialDecoderError
impl StructuralPartialEq for StandardPartialDecoderError
Auto Trait Implementations§
impl Freeze for StandardPartialDecoderError
impl RefUnwindSafe for StandardPartialDecoderError
impl Send for StandardPartialDecoderError
impl Sync for StandardPartialDecoderError
impl Unpin for StandardPartialDecoderError
impl UnwindSafe for StandardPartialDecoderError
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