mirror of https://github.com/zcash/halo2.git
Remove CellValue type
This commit is contained in:
parent
f3021beda6
commit
1f6b3c0014
|
@ -87,22 +87,6 @@ pub struct Cell {
|
||||||
column: Column<Any>,
|
column: Column<Any>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A structure containing a cell and its assigned value.
|
|
||||||
#[derive(Clone, Debug)]
|
|
||||||
pub struct CellValue<T> {
|
|
||||||
/// The cell of this `CellValue`
|
|
||||||
pub cell: Cell,
|
|
||||||
/// The value assigned to this `CellValue`
|
|
||||||
pub value: Option<T>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<T> CellValue<T> {
|
|
||||||
/// Construct a `CellValue`.
|
|
||||||
pub fn new(cell: Cell, value: Option<T>) -> Self {
|
|
||||||
CellValue { cell, value }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A region of the circuit in which a [`Chip`] can assign cells.
|
/// A region of the circuit in which a [`Chip`] can assign cells.
|
||||||
///
|
///
|
||||||
/// Inside a region, the chip may freely use relative offsets; the [`Layouter`] will
|
/// Inside a region, the chip may freely use relative offsets; the [`Layouter`] will
|
||||||
|
|
Loading…
Reference in New Issue