Remove CellValue type

This commit is contained in:
therealyingtong 2021-04-28 20:39:08 +08:00
parent f3021beda6
commit 1f6b3c0014
1 changed files with 0 additions and 16 deletions

View File

@ -87,22 +87,6 @@ pub struct Cell {
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.
///
/// Inside a region, the chip may freely use relative offsets; the [`Layouter`] will