Trait zkevm_circuits::util::Expr

source ·
pub trait Expr<F>
where F: Field,
{ // Required method fn expr(&self) -> Expression<F>; }
Expand description

Trait that implements functionality to get a constant expression from commonly used types.

Required Methods§

source

fn expr(&self) -> Expression<F>

Returns an expression for the type.

Implementations on Foreign Types§

source§

impl<F> Expr<F> for &Expression<F>
where F: Field,

source§

fn expr(&self) -> Expression<F>

source§

impl<F> Expr<F> for CopyDataType
where F: Field,

source§

fn expr(&self) -> Expression<F>

source§

impl<F> Expr<F> for Target
where F: Field,

source§

fn expr(&self) -> Expression<F>

source§

impl<F> Expr<F> for OpcodeId
where F: Field,

source§

fn expr(&self) -> Expression<F>

source§

impl<F> Expr<F> for bool
where F: Field,

source§

fn expr(&self) -> Expression<F>

source§

impl<F> Expr<F> for i32
where F: Field,

source§

fn expr(&self) -> Expression<F>

source§

impl<F> Expr<F> for isize
where F: Field,

source§

fn expr(&self) -> Expression<F>

source§

impl<F> Expr<F> for u8
where F: Field,

source§

fn expr(&self) -> Expression<F>

source§

impl<F> Expr<F> for u64
where F: Field,

source§

fn expr(&self) -> Expression<F>

source§

impl<F> Expr<F> for usize
where F: Field,

source§

fn expr(&self) -> Expression<F>

source§

impl<F> Expr<F> for Expression<F>
where F: Field,

source§

fn expr(&self) -> Expression<F>

Implementors§

source§

impl<F: Field> Expr<F> for &Cell<F>

source§

impl<F: Field> Expr<F> for zkevm_circuits::evm_circuit::table::FixedTableTag

source§

impl<F: Field> Expr<F> for zkevm_circuits::mpt_circuit::FixedTableTag

source§

impl<F: Field> Expr<F> for AccountFieldTag

source§

impl<F: Field> Expr<F> for BlockContextFieldTag

source§

impl<F: Field> Expr<F> for BytecodeFieldTag

source§

impl<F: Field> Expr<F> for CallContextFieldTag

source§

impl<F: Field> Expr<F> for StepStateFieldTag

source§

impl<F: Field> Expr<F> for TxFieldTag

source§

impl<F: Field> Expr<F> for TxLogFieldTag

source§

impl<F: Field> Expr<F> for TxReceiptFieldTag

source§

impl<F: Field> Expr<F> for MPTProofType

source§

impl<F: Field> Expr<F> for Cell<F>

source§

impl<F: Field, const N_LIMBS: usize> Expr<F> for IntDecomposition<F, N_LIMBS>