Enum cpr_bf::BrainfuckExecutionError
source · pub enum BrainfuckExecutionError {
UnknownError,
IOError(Error),
JumpMismatchError(MissingKind),
MemoryError(VMMemoryError),
DataPointerOverflow,
DataPointerUnderflow,
}
Expand description
A fatal error encountered by the Brainfuck VM during program execution.
Variants§
UnknownError
An unknown error
IOError(Error)
An error during input or output
JumpMismatchError(MissingKind)
Mismatched jump instructions
MemoryError(VMMemoryError)
An error during memory allocation or access
DataPointerOverflow
Overflow in the data pointer
DataPointerUnderflow
Underflow in the data pointer
Trait Implementations§
source§impl Debug for BrainfuckExecutionError
impl Debug for BrainfuckExecutionError
source§impl Display for BrainfuckExecutionError
impl Display for BrainfuckExecutionError
source§impl Error for BrainfuckExecutionError
impl Error for BrainfuckExecutionError
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
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()
source§impl From<()> for BrainfuckExecutionError
impl From<()> for BrainfuckExecutionError
source§impl From<Error> for BrainfuckExecutionError
impl From<Error> for BrainfuckExecutionError
source§impl From<VMMemoryError> for BrainfuckExecutionError
impl From<VMMemoryError> for BrainfuckExecutionError
source§fn from(value: VMMemoryError) -> Self
fn from(value: VMMemoryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BrainfuckExecutionError
impl !RefUnwindSafe for BrainfuckExecutionError
impl Send for BrainfuckExecutionError
impl Sync for BrainfuckExecutionError
impl Unpin for BrainfuckExecutionError
impl !UnwindSafe for BrainfuckExecutionError
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