Expand description
A collection of macros designed to implement simple operations whose implementations are often boilerplate based off some other operation.
Macrosยง
- impl_
add_ assign - Given a struct which implements
AddimplementAddAssign<T>for any typeTwhich implementsInto<Self>. - impl_
add_ base_ field - Given two structs
AlgandFieldwhereAlgimplementsFrom<Field>, implementAdd<Field>forAlgandAdd<Alg>forField. - impl_
div_ methods - Given two structs
AlgandFieldwhereAlgimplementsFrom<Field>, implementDiv<Field>andDivAssign<Field>forAlg. - impl_
mul_ base_ field - Given two structs
AlgandFieldwhereAlgimplementsFrom<Field>, implementMul<Field>forAlgandMul<Alg>forField. - impl_
mul_ methods - Given a struct which implements
MulimplementMulAssign<T>for any typeTwhich implementsInto<Self>. - impl_
packed_ value - Given
FieldandAlgebrastructs whereAlgebrais simply a wrapper around[Field; N]implementPackedValueforAlgebra. - impl_
rng - Given a struct
Algwhich is a wrapper over[Field; N]for someN, implementDistribution<Alg>forStandardUniform. - impl_
sub_ assign - Given a struct which implements
SubimplementSubAssign<T>for any typeTwhich implementsInto<Self>. - impl_
sub_ base_ field - Given two structs
AlgandFieldwhereAlgimplementsFrom<Field>, implementSub<Field>forAlgandSub<Alg>forField. - impl_
sum_ prod_ base_ field - Given two structs
AlgandFieldwhereAlgimplementsFrom<Field>, implementSum<Field> and Product<Field>forAlg. - ring_
sum - Given a struct which implements
AddimplementSum.