Type Alias Halo2AssignedCell

Source
pub type Halo2AssignedCell<'v, F> = AssignedCell<&'v Assigned<F>, F>;
Expand description

Raw (physical) assigned cell in Plonkish arithmetization.

Aliased Type§

struct Halo2AssignedCell<'v, F> { /* private fields */ }

Implementations

Source§

impl<'v, F> AssignedCell<&'v Assigned<F>, F>
where F: Field,

Source

pub fn copy_advice( &self, region: &mut Region<'_, F>, column: Column<Advice>, offset: usize, ) -> AssignedCell<&Assigned<F>, F>

Copies the value to a given advice cell and constrains them to be equal.

Returns an error if either this cell or the given cell are in columns where equality has not been enabled.

Source§

impl<V, F> AssignedCell<V, F>
where F: Field,

Source

pub fn value(&self) -> Value<&V>

Returns the value of the AssignedCell.

Source

pub fn cell(&self) -> Cell

Returns the cell.

Source

pub fn row_offset(&self) -> usize

Source

pub fn column(&self) -> &Column<Any>

Source§

impl<V, F> AssignedCell<V, F>
where F: Field, Assigned<F>: for<'v> From<&'v V>,

Source

pub fn value_field(&self) -> Value<Assigned<F>>

Returns the field element value of the AssignedCell.

Trait Implementations

Source§

impl<V, F> Clone for AssignedCell<V, F>
where V: Clone, F: Clone + Field,

Source§

fn clone(&self) -> AssignedCell<V, F>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<V, F> Debug for AssignedCell<V, F>
where V: Debug, F: Debug + Field,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more