Enum kerbalobjects::ksm::errors::InstrParseError
source · pub enum InstrParseError {
OpcodeParseError(usize, OpcodeParseError),
MissingOperand(usize),
}
Expand description
An error parsing a code section instruction
Variants§
OpcodeParseError(usize, OpcodeParseError)
Error reading invalid code section instruction opcode
MissingOperand(usize)
Error running out of bytes while reading code section instruction operand
Trait Implementations§
source§impl Clone for InstrParseError
impl Clone for InstrParseError
source§fn clone(&self) -> InstrParseError
fn clone(&self) -> InstrParseError
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 InstrParseError
impl Debug for InstrParseError
source§impl Display for InstrParseError
impl Display for InstrParseError
source§impl Error for InstrParseError
impl Error for InstrParseError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
impl Copy for InstrParseError
Auto Trait Implementations§
impl RefUnwindSafe for InstrParseError
impl Send for InstrParseError
impl Sync for InstrParseError
impl Unpin for InstrParseError
impl UnwindSafe for InstrParseError
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