Skip to content

Commit d0c840b

Browse files
committed
Readd wire::new
1 parent d9322e9 commit d0c840b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

zkcir/src/ast/expr.rs

+10
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,16 @@ pub struct Wire {
323323
}
324324

325325
impl Wire {
326+
#[must_use]
327+
pub fn new(row: usize, column: usize, wiretype: Wiretype) -> Wire {
328+
Self {
329+
row,
330+
column,
331+
value: None,
332+
wiretype,
333+
}
334+
}
335+
326336
#[must_use]
327337
pub fn new_constant(row: usize, column: usize) -> Wire {
328338
Self {

0 commit comments

Comments
 (0)