pub trait AddIdentity: Sized + Add<Output = Self> {
    const ADD_IDENTITY: Self;
    const ZERO: Self = Self::ADD_IDENTITY;
}

Required Associated Constants§

source

const ADD_IDENTITY: Self

the identity of mod add operation, typically zero

Provided Associated Constants§

source

const ZERO: Self = Self::ADD_IDENTITY

Implementors§

source§

impl<I, M> AddIdentity for FpElement<I, M>where M: PrimeModular<I>, I: BigIntOps + IsBigInt,

source§

const ADD_IDENTITY: Self = _

source§

impl<I, M> AddIdentity for Element<I, M>where M: Modular<I>, I: BigIntOps + IsBigInt,

source§

const ADD_IDENTITY: Self = _