Conversation

Good faith question for heads:

I'd like to make a GUI app that features a DAG of interconnected nodes. I found this project (https://github.com/trevyn/egui_node_graph2/blob/main/egui_node_graph2_example/src/app.rs) which seems like a good starting point.

However, It looks like the implementation for each node type is split across various enums / functions which seems unmaintainable and annoying. Is there an idiomatic way in rust to sort of centralize the data/functions for individual node classes?

I am a rust idiot so please be gentle.

1
2
0
@heavyimage
The closest thing to a class in Rust is a struct. But that is unlikely sufficient for most needs. A module is the code organization mechanism you are looking for, I would think.
0
0
0