pub trait WitnessCell<F: Field, T = F, const W: usize = COLUMNS> {
    // Required method
    fn value(
        &self,
        witness: &mut [Vec<F>; W],
        variables: &Variables<'_, T>,
        index: usize
    ) -> F;

    // Provided method
    fn length(&self) -> usize { ... }
}
Expand description

Witness cell interface. By default, the witness cell is a single element of type F.

Required Methods§

source

fn value( &self, witness: &mut [Vec<F>; W], variables: &Variables<'_, T>, index: usize ) -> F

Provided Methods§

source

fn length(&self) -> usize

Implementors§

source§

impl<'a, F: Field, const W: usize> WitnessCell<F, Vec<F, Global>, W> for IndexCell<'a>

source§

impl<'a, F: Field, const W: usize> WitnessCell<F, F, W> for VariableBitsCell<'a>

source§

impl<'a, F: Field, const W: usize> WitnessCell<F, F, W> for VariableCell<'a>

source§

impl<F: Field, const W: usize> WitnessCell<F, F, W> for ConstantCell<F>

source§

impl<F: Field, const W: usize> WitnessCell<F, F, W> for CopyBitsCell

source§

impl<F: Field, const W: usize> WitnessCell<F, F, W> for CopyCell

source§

impl<F: Field, const W: usize> WitnessCell<F, F, W> for CopyShiftCell