Trait num::traits::RefNum

source ·
pub trait RefNum<Base>: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base> { }
Expand description

The trait for references which implement numeric operations, taking the second operand either by value or by reference.

This is automatically implemented for types which implement the operators.

Implementors§

source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,