pub trait HasIO {
    fn inputs(&self) -> InputIterator<'_, Self>
    where
        Self: Sized
;
fn outputs(&self) -> OutputIterator<'_, Self>
    where
        Self: Sized
; fn dst<'a>(&'a self) -> Option<usize>
    where
        Self: 'a + Sized,
        OutputIterator<'a, Self>: Iterator<Item = usize>
, { ... } }
Expand description

Applies to all gates, allows access to the input and output wire IDs of the gates

Required methods

Provided methods

For convenience, allows access to the (optional) output, since each gate only ever has one at most.

Implementors