Trait BinaryBundleGadgets

Source
pub trait BinaryBundleGadgets: FancyBinary {
    // Provided method
    fn multiplex(
        &mut self,
        b: &Self::Item,
        x: &Bundle<Self::Item>,
        y: &Bundle<Self::Item>,
    ) -> Result<Bundle<Self::Item>, Self::Error> { ... }
}
Expand description

Binary operations on wire bundles, extending the capability of FancyBinary operating on individual wires.

Provided Methods§

Source

fn multiplex( &mut self, b: &Self::Item, x: &Bundle<Self::Item>, y: &Bundle<Self::Item>, ) -> Result<Bundle<Self::Item>, Self::Error>

If b=0 then return x, else return y.

Implementors§