macro_rules! impl_div_methods {
($alg_type:ty, $field_type:ty $(, ($type_param:ty, $param_name:ty))?) => { ... };
}Expand description
Given two structs Alg and Field where Alg implements From<Field>, implement
Div<Field> and DivAssign<Field> for Alg.
Both are implemented in the simplest way by first applying the .inverse() map from
Field then using the From to map the inverse to an Alg element before
applying the native mul or mul_assign methods on Alg elements.
This can also be used with Alg = Field to implement Div and DivAssign for Field.