Skip to content

Commit

Permalink
add conversion for Selector -> Column<Any>
Browse files Browse the repository at this point in the history
  • Loading branch information
zemse committed Jan 30, 2024
1 parent ba029df commit 8cd1376
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions halo2_proofs/src/plonk/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,15 @@ impl From<Column<Fixed>> for Column<Any> {
}
}

impl From<Selector> for Column<Any> {
fn from(selector: Selector) -> Column<Any> {
Column {
index: selector.index(),
column_type: Any::Fixed,
}
}
}

impl From<Column<Instance>> for Column<Any> {
fn from(advice: Column<Instance>) -> Column<Any> {
Column {
Expand Down

0 comments on commit 8cd1376

Please sign in to comment.