pub trait Wirable: Sized {
// Required methods
fn new(row: usize) -> Self;
fn wire(self, col: usize, to: Wire) -> Self;
}
Expand description
Since we don’t have a specific type for the wires of a row, we have to implement these convenience functions through a trait.