-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let
to_graph_custom
accept generic closures (#131)
This PR lets `egui_graphs::to_graph_custom` accept generic functions and closures. This was still possible in `0.15`, but unfortunately, starting from `0.16` it only accepts bare function pointers. This has the downside that it's no longer possible to reference external state while transforming a graph. Well, unless you hack something together using global variables but I was unwilling to go that route 😉.
- Loading branch information
Showing
2 changed files
with
9 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters