Trait Translate
Source pub trait Translate<TI1, O1, TI2, O2>: Debug{
// Required method
fn translate_node(
&self,
source: &Graph<TI1, O1>,
node: &Node<TI1, O1>,
target: &mut Graph<TI2, O2>,
mapping: &HashMap<OutletId, OutletId>,
) -> Result<SmallVec<[OutletId; 4]>, Error>;
// Provided methods
fn translate_model(
&self,
source: &Graph<TI1, O1>,
) -> Result<Graph<TI2, O2>, Error> { ... }
fn translate_model_with_mappings(
&self,
source: &Graph<TI1, O1>,
) -> Result<(Graph<TI2, O2>, HashMap<OutletId, OutletId>), Error> { ... }
}