Enum yaxpeax_arch::StandardDecodeError
source · [−]pub enum StandardDecodeError {
ExhaustedInput,
InvalidOpcode,
InvalidOperand,
}
Expand description
a minimal enum implementing DecodeError
. this is intended to be enough for a low effort,
low-fidelity error taxonomy, without boilerplate of a DecodeError
implementation.
Variants
ExhaustedInput
InvalidOpcode
InvalidOperand
Trait Implementations
sourceimpl Clone for StandardDecodeError
impl Clone for StandardDecodeError
sourcefn clone(&self) -> StandardDecodeError
fn clone(&self) -> StandardDecodeError
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 StandardDecodeError
impl Debug for StandardDecodeError
sourceimpl DecodeError for StandardDecodeError
impl DecodeError for StandardDecodeError
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 StandardDecodeError
impl Display for StandardDecodeError
sourceimpl Error for StandardDecodeError
impl Error for StandardDecodeError
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 From<ReadError> for StandardDecodeError
impl From<ReadError> for StandardDecodeError
sourcefn from(_: ReadError) -> StandardDecodeError
fn from(_: ReadError) -> StandardDecodeError
Converts to this type from the input type.
sourceimpl PartialEq<StandardDecodeError> for StandardDecodeError
impl PartialEq<StandardDecodeError> for StandardDecodeError
sourcefn eq(&self, other: &StandardDecodeError) -> bool
fn eq(&self, other: &StandardDecodeError) -> bool
impl Copy for StandardDecodeError
impl Eq for StandardDecodeError
impl StructuralEq for StandardDecodeError
impl StructuralPartialEq for StandardDecodeError
Auto Trait Implementations
impl RefUnwindSafe for StandardDecodeError
impl Send for StandardDecodeError
impl Sync for StandardDecodeError
impl Unpin for StandardDecodeError
impl UnwindSafe for StandardDecodeError
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