Skip to main content

ArithmeticOperand

Trait ArithmeticOperand 

Source
pub trait ArithmeticOperand:
    Zero
    + PartialEq
    + ToSigned
    + OverflowingAdd
    + OverflowingSub
    + OverflowingMul
    + BitAnd<Self, Output = Self>
    + BitOr<Self, Output = Self>
    + BitXor<Self, Output = Self>
    + Not<Output = Self>
    + Shl<Self, Output = Self>
    + Shr<Self, Output = Self> { }

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Zero + PartialEq + ToSigned + OverflowingAdd + OverflowingSub + OverflowingMul + BitAnd<T, Output = T> + BitOr<T, Output = T> + BitXor<T, Output = T> + Not<Output = T> + Shl<T, Output = T> + Shr<T, Output = T>> ArithmeticOperand for T