pub enum AluError {
Overflow,
Underflow,
DivideByZero,
}Expand description
ALU operation error.
Variants§
Overflow
An ALU operation overflowed a Word value.
Underflow
An ALU operation underflowed a Word value.
DivideByZero
An ALU operation (either Div or Mod) attempted to divide by zero.
Trait Implementations§
Source§impl Error for AluError
impl Error for AluError
1.30.0 · 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()
Source§impl From<AluError> for OpSyncError
impl From<AluError> for OpSyncError
Source§fn from(source: AluError) -> OpSyncError
fn from(source: AluError) -> OpSyncError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AluError
impl RefUnwindSafe for AluError
impl Send for AluError
impl Sync for AluError
impl Unpin for AluError
impl UnwindSafe for AluError
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