pub enum Error {
OutOfPancakes,
InvalidPancake(String),
CanNotShowPancake(u32),
UndefinedLabel(String),
PancakeUnderflow,
PancakeOverflow,
Io(Error),
}Expand description
An enum representing the possible errors when executing a pancakestack program.
Variants§
OutOfPancakes
You were greedy and wanted more pancakes than were available.
InvalidPancake(String)
You gave me a pancake that was not a valid number.
CanNotShowPancake(u32)
The pancake you tried to display was shy and hid outside of your visible spectrum (no a valid char).
UndefinedLabel(String)
You tried to go somewhere undefined.
PancakeUnderflow
You tried to produce an invalid pancake by underflowing u32.
PancakeOverflow
You tried to produce an invalid pancake by overflowing u32.
Io(Error)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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