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.

Required Methods§

source

fn new(row: usize) -> Self

Creates a new set of wires for a given row.

source

fn wire(self, col: usize, to: Wire) -> Self

Wire the cell at col to another cell (to).

Implementors§