pub trait ArithmeticOps<T>: Copy {
    fn add(self, other: T) -> T;
    fn sub(self, other: T) -> T;
    fn mul(self, other: T) -> T;
    fn div(self, other: T) -> Result<T, TrapCode>;
}
Expand description

Arithmetic operations.

Required Methods

Add two values.

Subtract two values.

Multiply two values.

Divide two values.

Implementations on Foreign Types

Implementors