/// Returns a string representation of the [`OpticNode`] in `graphviz` format.
/// Returns a string representation of the [`OpticNode`] in `graphviz` format. This function is normally called by the top-level `to_dot`function within
/// `OpticScenery`.
pubfnto_dot(&self)->String{
pubfnto_dot(&self)->String{
format!(" \"{}\"\n",self.name)
format!(" \"{}\"\n",self.name)
}
}
/// Returns the concrete node type as string representation.
/// Returns the concrete node type as string representation.
pubfnnode_type(&self)->String{
pubfnnode_type(&self)->&str{
self.node.node_type()
self.node.node_type()
}
}
}
}
...
@@ -47,8 +48,8 @@ impl Debug for OpticNode {
...
@@ -47,8 +48,8 @@ impl Debug for OpticNode {
/// This trait must be implemented by all concrete optical components.
/// This trait must be implemented by all concrete optical components.
pubtraitOptical{
pubtraitOptical{
/// Return the type of the optical component (lens, filter, ...). The default implementation returns "undefined".
/// Return the type of the optical component (lens, filter, ...). The default implementation returns "undefined".