pub enum PncError {
DivisionByZero,
PrecisionBudgetExceeded,
InvalidUnitConversion,
Parse(String),
UnknownCommand(String),
ClipboardUnavailable,
StackUnderflow,
UnsupportedSchemaVersion,
Io(Error),
}Expand description
Errors that can occur during evaluation or persistence.
Variants§
DivisionByZero
PrecisionBudgetExceeded
InvalidUnitConversion
Parse(String)
UnknownCommand(String)
StackUnderflow
UnsupportedSchemaVersion
Io(Error)
Trait Implementations§
Source§impl Error for PncError
impl Error for PncError
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 !RefUnwindSafe for PncError
impl !UnwindSafe for PncError
impl Forget for PncError
impl Freeze for PncError
impl Move for PncError
impl Send for PncError
impl Sync for PncError
impl Unpin for PncError
impl UnsafeUnpin for PncError
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