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

Safety

this trait is safe only when for all a, b, a + b = b + a

Implementors§

source§

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

Safety

Element is backed by biguint, which is communicative under addition

source§

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

Safety

Element is backed by biguint, which is communicative under addition