pub trait AssociativeMul: Sized + Mul<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> AssociativeMul for FpElement<I, M>where M: Montgomery<I>, I: BigIntOpsExt,

Safety

our element type is backed by biguint, so mod mul is associative

source§

impl<I, M> AssociativeMul for Element<I, M>where M: Modular<I>, Self: Mul<Output = Self>,

Safety

our element type is backed by biguint, so mod mul is associative