pub enum NumericOperationKind {
Add,
Sub,
Mul,
Div,
Neg,
Shl,
Shr,
Rem,
}Expand description
A type of the RuntimeError::NumericOperation error.
This object describes the type of operation that caused the error.
Variants§
Add
The sum of two numbers: 10 + 20.
Sub
The subtraction of two numbers: 10 - 20.
Mul
The multiplication of two numbers: 10 * 20.
Div
The division of two numbers: 10 / 20.
Neg
The negative value of a number: -10.
Shl
A bitwise shift to the left: 10 << 20.
Shr
A bitwise shift to the right: 10 >> 20.
Rem
The remainder of division: 10 % 20.
Trait Implementations§
Source§impl Clone for NumericOperationKind
impl Clone for NumericOperationKind
Source§fn clone(&self) -> NumericOperationKind
fn clone(&self) -> NumericOperationKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NumericOperationKind
Source§impl Debug for NumericOperationKind
impl Debug for NumericOperationKind
impl Eq for NumericOperationKind
Source§impl PartialEq for NumericOperationKind
impl PartialEq for NumericOperationKind
Source§fn eq(&self, other: &NumericOperationKind) -> bool
fn eq(&self, other: &NumericOperationKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NumericOperationKind
Auto Trait Implementations§
impl Freeze for NumericOperationKind
impl RefUnwindSafe for NumericOperationKind
impl Send for NumericOperationKind
impl Sync for NumericOperationKind
impl Unpin for NumericOperationKind
impl UnsafeUnpin for NumericOperationKind
impl UnwindSafe for NumericOperationKind
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