Crate sunscreen_math_macros

Source

Attribute Macros§

refify_binary_op
This trait auto impls all combinations of borrowed and owned for binary std::ops traits. To use this, you must impl std::ops::Op<&T> for &T and this macro will auto create the other traits to call your impl by borrowing the rhs or self as appropriate.

Derive Macros§

BarrettConfig
Derive the config for a ring over Z_q using Barrett reductions for multiplication modulo q.