pub trait AssociativeAdd: Sized + Add<Output = Self> { }
Expand description

Safety

this trait is safe only when for all a, b, c: a + (b + c) = (a + b) + c

Implementors§

source§

impl<I, M> AssociativeAdd for FpElement<I, M>where M: PrimeModular<I>, Self: Add<Output = Self>,

Safety

Element is backed by biguint, which is associative under addition

source§

impl<I, M> AssociativeAdd for Element<I, M>where M: Modular<I>, Self: Add<Output = Self>,

Safety

Element is backed by biguint, which is associative under addition