pub trait NumRef: Num + for<'r> NumOps<&'r Self, Self> { }
Expand description

The trait for Num types which also implement numeric operations taking the second operand by reference.

This is automatically implemented for types which implement the operators.

Implementors§

source§

impl<T> NumRef for Twhere T: Num + for<'r> NumOps<&'r T, T>,