pub fn constant<T: Copy + Sized + 'static>(value: T) -> Vec<GateIndex>
Returns a Vec of ON or OFF values representing the bits of any
Copy + Sized + 'static value
.
let c = constant(54u8);
let output = g.output(&c, "const");
let gi = &mut g.init();
assert_eq!(output.u8(gi), 54);