halo2_base

Macro impl_scalar_field

Source
macro_rules! impl_scalar_field {
    ($field:ident) => { ... };
}
Expand description

To ensure ScalarField is only implemented for ff:Field where Repr is little endian, we use the following macro to implement the trait for each field.