pub trait ExprResult<F> {
    // Required methods
    fn add(&self, other: &Self) -> Self;
    fn mul(&self, other: &Expression<F>) -> Self;
}
Expand description

Trait for doing math on Expressions, no matter the type they are stored in

Required Methods§

source

fn add(&self, other: &Self) -> Self

Adds two values together

source

fn mul(&self, other: &Expression<F>) -> Self

Multiply with a scalar

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<F: Field> ExprResult<F> for (Expression<F>, Expression<F>)

source§

fn add(&self, other: &Self) -> Self

source§

fn mul(&self, other: &Expression<F>) -> Self

source§

impl<F: Field> ExprResult<F> for (Expression<F>, Expression<F>, Expression<F>)

source§

fn add(&self, other: &Self) -> Self

source§

fn mul(&self, other: &Expression<F>) -> Self

source§

impl<F: Field> ExprResult<F> for (Expression<F>, Expression<F>, Expression<F>, Expression<F>)

source§

fn add(&self, other: &Self) -> Self

source§

fn mul(&self, other: &Expression<F>) -> Self

source§

impl<F: Field> ExprResult<F> for (Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>)

source§

fn add(&self, other: &Self) -> Self

source§

fn mul(&self, other: &Expression<F>) -> Self

source§

impl<F: Field> ExprResult<F> for (Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>)

source§

fn add(&self, other: &Self) -> Self

source§

fn mul(&self, other: &Expression<F>) -> Self

source§

impl<F: Field> ExprResult<F> for (Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>)

source§

fn add(&self, other: &Self) -> Self

source§

fn mul(&self, other: &Expression<F>) -> Self

source§

impl<F: Field> ExprResult<F> for (Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>)

source§

fn add(&self, other: &Self) -> Self

source§

fn mul(&self, other: &Expression<F>) -> Self

source§

impl<F: Field> ExprResult<F> for (Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>)

source§

fn add(&self, other: &Self) -> Self

source§

fn mul(&self, other: &Expression<F>) -> Self

source§

impl<F: Field> ExprResult<F> for (Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>)

source§

fn add(&self, other: &Self) -> Self

source§

fn mul(&self, other: &Expression<F>) -> Self

source§

impl<F: Field> ExprResult<F> for (Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>, Expression<F>)

source§

fn add(&self, other: &Self) -> Self

source§

fn mul(&self, other: &Expression<F>) -> Self

source§

impl<F: Field> ExprResult<F> for ()

source§

fn add(&self, _other: &Self) -> Self

source§

fn mul(&self, _other: &Expression<F>) -> Self

source§

impl<F: Field> ExprResult<F> for Vec<Expression<F>>

source§

fn add(&self, other: &Self) -> Self

source§

fn mul(&self, other: &Expression<F>) -> Self

source§

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

source§

fn add(&self, other: &Self) -> Self

source§

fn mul(&self, other: &Expression<F>) -> Self

Implementors§