Type Definition kimchi::circuits::expr::ConstantExpr

source ·
pub type ConstantExpr<F, ChallengeTerm> = Operations<ConstantExprInner<F, ChallengeTerm>>;

Implementations§

source§

impl<F: Field, ChallengeTerm: Copy> ConstantExpr<F, ChallengeTerm>

source

pub fn value( &self, c: &Constants<F>, chals: &dyn Index<ChallengeTerm, Output = F> ) -> F

Evaluate the given constant expression to a field element.

Trait Implementations§

source§

impl<'a, F, ChallengeTerm: AlphaChallengeTerm<'a>> From<ChallengeTerm> for ConstantExpr<F, ChallengeTerm>

source§

fn from(x: ChallengeTerm) -> Self

Converts to this type from the input type.
source§

impl<F, ChallengeTerm> From<ConstantTerm<F>> for ConstantExpr<F, ChallengeTerm>

source§

fn from(x: ConstantTerm<F>) -> Self

Converts to this type from the input type.
source§

impl<F: Field, ChallengeTerm> From<u64> for ConstantExpr<F, ChallengeTerm>

source§

fn from(x: u64) -> Self

Converts to this type from the input type.