Enum kerbalobjects::errors::OpcodeParseError
source · pub enum OpcodeParseError {
EOF,
InvalidOpcode(u8),
}
Expand description
An error type that describes an error while just parsing an Opcode
Variants§
EOF
Error running out of bytes while reading instruction opcode
InvalidOpcode(u8)
Error reading invalid instruction opcode
Trait Implementations§
source§impl Clone for OpcodeParseError
impl Clone for OpcodeParseError
source§fn clone(&self) -> OpcodeParseError
fn clone(&self) -> OpcodeParseError
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 OpcodeParseError
impl Debug for OpcodeParseError
source§impl Display for OpcodeParseError
impl Display for OpcodeParseError
source§impl Error for OpcodeParseError
impl Error for OpcodeParseError
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 OpcodeParseError
Auto Trait Implementations§
impl RefUnwindSafe for OpcodeParseError
impl Send for OpcodeParseError
impl Sync for OpcodeParseError
impl Unpin for OpcodeParseError
impl UnwindSafe for OpcodeParseError
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