acir_fieldMacro field_wrapper
Source macro_rules! field_wrapper {
($wrapper:ident, $field:ident) => { ... };
}
Expand description
Define a newtype wrapper around an AcirField by implementing all the
boilerplate for forwarding the field operations.
This allows the wrapper to implement traits such as Arbitrary, and then
be used by code that is generic in F: AcirField.
§Example
ⓘfield_wrapper!(TestField, FieldElement);