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
ExhaustedInput
InvalidOpcode
InvalidOperand
IncompleteDecoder
Trait Implementations
sourceimpl Clone for StandardPartialDecoderError
impl Clone for StandardPartialDecoderError
sourcefn clone(&self) -> StandardPartialDecoderError
fn clone(&self) -> StandardPartialDecoderError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StandardPartialDecoderError
impl Debug for StandardPartialDecoderError
sourceimpl DecodeError for StandardPartialDecoderError
impl DecodeError for StandardPartialDecoderError
sourcefn data_exhausted(&self) -> bool
fn data_exhausted(&self) -> bool
did the decoder fail because it reached the end of input?
sourcefn bad_opcode(&self) -> bool
fn bad_opcode(&self) -> bool
did the decoder error because the instruction’s opcode is invalid? Read more
sourcefn 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
sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
a human-friendly description of this decode error.
sourceimpl Display for StandardPartialDecoderError
impl Display for StandardPartialDecoderError
sourceimpl Error for StandardPartialDecoderError
impl Error for StandardPartialDecoderError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl PartialEq<StandardPartialDecoderError> for StandardPartialDecoderError
impl PartialEq<StandardPartialDecoderError> for StandardPartialDecoderError
sourcefn eq(&self, other: &StandardPartialDecoderError) -> bool
fn eq(&self, other: &StandardPartialDecoderError) -> bool
impl Copy for StandardPartialDecoderError
impl Eq for StandardPartialDecoderError
impl StructuralEq for StandardPartialDecoderError
impl StructuralPartialEq for StandardPartialDecoderError
Auto Trait Implementations
impl RefUnwindSafe for StandardPartialDecoderError
impl Send for StandardPartialDecoderError
impl Sync for StandardPartialDecoderError
impl Unpin for StandardPartialDecoderError
impl UnwindSafe for StandardPartialDecoderError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more