pub enum SuperHInstructionDecodeError {
Exhausted,
NotFound,
}
Variants§
Trait Implementations§
Source§impl Clone for SuperHInstructionDecodeError
impl Clone for SuperHInstructionDecodeError
Source§fn clone(&self) -> SuperHInstructionDecodeError
fn clone(&self) -> SuperHInstructionDecodeError
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 SuperHInstructionDecodeError
impl Debug for SuperHInstructionDecodeError
Source§impl DecodeError for SuperHInstructionDecodeError
impl DecodeError for SuperHInstructionDecodeError
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 SuperHInstructionDecodeError
impl Error for SuperHInstructionDecodeError
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()
Source§impl From<ReadError> for SuperHInstructionDecodeError
impl From<ReadError> for SuperHInstructionDecodeError
Source§fn from(_e: ReadError) -> SuperHInstructionDecodeError
fn from(_e: ReadError) -> SuperHInstructionDecodeError
Converts to this type from the input type.
Source§impl Hash for SuperHInstructionDecodeError
impl Hash for SuperHInstructionDecodeError
Source§impl Ord for SuperHInstructionDecodeError
impl Ord for SuperHInstructionDecodeError
Source§fn cmp(&self, other: &SuperHInstructionDecodeError) -> Ordering
fn cmp(&self, other: &SuperHInstructionDecodeError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SuperHInstructionDecodeError
impl PartialEq for SuperHInstructionDecodeError
Source§fn eq(&self, other: &SuperHInstructionDecodeError) -> bool
fn eq(&self, other: &SuperHInstructionDecodeError) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for SuperHInstructionDecodeError
impl PartialOrd for SuperHInstructionDecodeError
impl Copy for SuperHInstructionDecodeError
impl Eq for SuperHInstructionDecodeError
impl StructuralPartialEq for SuperHInstructionDecodeError
Auto Trait Implementations§
impl Freeze for SuperHInstructionDecodeError
impl RefUnwindSafe for SuperHInstructionDecodeError
impl Send for SuperHInstructionDecodeError
impl Sync for SuperHInstructionDecodeError
impl Unpin for SuperHInstructionDecodeError
impl UnwindSafe for SuperHInstructionDecodeError
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