Module macros_generic

Module macros_generic 

Source

MacrosΒ§

dispatch_struct πŸ”’
Define a struct that wraps some field-dependent type in an enum. Since Fp<P2> through Fp<P7> are all ZSTs, working with them under the hood is in theory much faster than working with an arbitrary prime field, let alone finite field.
dispatch_vector πŸ”’
dispatch_vector_inner πŸ”’
impl_from πŸ”’
impl_from_inner πŸ”’
impl_try_into πŸ”’
impl_try_into_inner πŸ”’
use_primes πŸ”’
Use all primes. It isn’t possible to have this import when odd-primes is disabled because primes other than P2 and ValidPrime (which happen to be the same type) do not exist.