Trait NameMapper

Source
pub trait NameMapper {
    // Required methods
    fn map_input_name(&mut self, input_name: &str) -> String;
    fn map_output_name(&mut self, output_name: &str) -> String;
}
Expand description

A trait used to return names for input and output gates when creating copies of circuits.

Required Methods§

Source

fn map_input_name(&mut self, input_name: &str) -> String

Given an input name in the original circuit, returns the name in the copy.

Source

fn map_output_name(&mut self, output_name: &str) -> String

Given an output name in the original circuit, returns the name in the copy.

For both the argument and the return value, the empty string counts as “unnamed output”.

Implementors§