Trait WitnessCell

Source
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>, 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