linebender / piet

An abstraction for 2D graphics.
Apache License 2.0
1.23k stars 95 forks source link

Make samples_main take an Fn trait #558

Closed notgull closed 1 year ago

notgull commented 1 year ago

I'm currently using a hacky workaround in piet-hardware to test samples, and it doesn't look like there is a reason why it's an fn pointer instead of an Fn trait?