#[repr(C)]pub enum Arithmetic {
Add(Addition),
Div(Division),
Mul(Multiplication),
Pow(Power),
Rem(Remainder),
Sub(Subtraction),
}
Variants§
Implementations§
Trait Implementations§
Source§impl AsRef<str> for Arithmetic
impl AsRef<str> for Arithmetic
Source§impl<A, B> BinOp<A, B> for Arithmetic
impl<A, B> BinOp<A, B> for Arithmetic
Source§impl Clone for Arithmetic
impl Clone for Arithmetic
Source§fn clone(&self) -> Arithmetic
fn clone(&self) -> Arithmetic
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Arithmetic
impl Debug for Arithmetic
Source§impl Default for Arithmetic
impl Default for Arithmetic
Source§impl<'de> Deserialize<'de> for Arithmetic
impl<'de> Deserialize<'de> for Arithmetic
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Arithmetic
impl Display for Arithmetic
Source§impl FromStr for Arithmetic
impl FromStr for Arithmetic
Source§impl Hash for Arithmetic
impl Hash for Arithmetic
Source§impl IntoEnumIterator for Arithmetic
impl IntoEnumIterator for Arithmetic
type Iterator = ArithmeticIter
fn iter() -> ArithmeticIter ⓘ
Source§impl Operand for Arithmetic
impl Operand for Arithmetic
Source§impl Ord for Arithmetic
impl Ord for Arithmetic
Source§fn cmp(&self, other: &Arithmetic) -> Ordering
fn cmp(&self, other: &Arithmetic) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Arithmetic
impl PartialEq for Arithmetic
Source§impl PartialOrd for Arithmetic
impl PartialOrd for Arithmetic
Source§impl Serialize for Arithmetic
impl Serialize for Arithmetic
Source§impl TryFrom<&str> for Arithmetic
impl TryFrom<&str> for Arithmetic
Source§impl VariantNames for Arithmetic
impl VariantNames for Arithmetic
impl Copy for Arithmetic
impl Eq for Arithmetic
impl StructuralPartialEq for Arithmetic
Auto Trait Implementations§
impl Freeze for Arithmetic
impl RefUnwindSafe for Arithmetic
impl Send for Arithmetic
impl Sync for Arithmetic
impl Unpin for Arithmetic
impl UnwindSafe for Arithmetic
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