translate_inputs

Function translate_inputs 

Source
pub fn translate_inputs<T, U>(circuit: Circuit<T>, trans: &[U]) -> Circuit<T>
where T: Clone + Copy + Ord + PartialEq + Eq + Default + TryFrom<usize> + TryFrom<U>, <T as TryFrom<usize>>::Error: Debug, usize: TryFrom<T>, <usize as TryFrom<T>>::Error: Debug, U: Clone + Copy, <T as TryFrom<U>>::Error: Debug,
Expand description

Translates circuit inputs using translation table.

A trans is translation table. In this table entry index is original circuit input index and table entry value is destination circuit input index. Function returns circuit with translated inputs.