pub trait OpsIdentity {
    type Output;

    // Required methods
    fn zero() -> Self::Output;
    fn one() -> Self::Output;
}
Expand description

trait to retrieve general operation itentity element

Required Associated Types§

source

type Output

output type

Required Methods§

source

fn zero() -> Self::Output

additive identity

source

fn one() -> Self::Output

multiplicative identity

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl OpsIdentity for Fq

§

type Output = Fq

source§

fn zero() -> Self::Output

source§

fn one() -> Self::Output

source§

impl OpsIdentity for Fr

§

type Output = Fr

source§

fn zero() -> Self::Output

source§

fn one() -> Self::Output

source§

impl<F: Field> OpsIdentity for Expression<F>

§

type Output = Expression<F>

source§

fn zero() -> Self::Output

source§

fn one() -> Self::Output

Implementors§