Function num_derive::num_ops [−][src]
pub fn num_ops(input: TokenStream) -> TokenStream
Derives num_traits::NumOps
for newtypes. The inner type must already implement
NumOps
.
Note that, since NumOps
is really a trait alias for Add + Sub + Mul + Div + Rem
, this macro
generates impls for those traits. Furthermore, in all generated impls, RHS=Self
and
Output=Self
.