Enum aoc::y2019::intcode::ProgramError
source · pub enum ProgramError {
ParseInt(ParseIntError),
UnknownOpcode(i64),
UnknownMode(i64),
}
Expand description
A list of errors that may occur during the usage of this intcode Program
.
Variants§
ParseInt(ParseIntError)
Parsing error while converting an input string with parse_input
.
UnknownOpcode(i64)
An opcode couldn’t be parse because it’s not supported by the program.
UnknownMode(i64)
A parameter mode couldn’t be parsed because it’s not supported by the program.
Trait Implementations§
source§impl Debug for ProgramError
impl Debug for ProgramError
source§impl Display for ProgramError
impl Display for ProgramError
source§impl Error for ProgramError
impl Error for ProgramError
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()
source§impl From<ParseIntError> for ProgramError
impl From<ParseIntError> for ProgramError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ProgramError
impl Send for ProgramError
impl Sync for ProgramError
impl Unpin for ProgramError
impl UnwindSafe for ProgramError
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