Skip to main content

Wirable

Trait Wirable 

Source
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).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§