Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on reddthat.com

1 reply

Unless I'm missing something, I think you can clean it up and keep your static dispatch by turning the Driver struct into a trait:

You'd rename your struct Driver to struct DriverImpl, define a trait Driver and for the implementation you'd use impl Driver for DriverImpl where etc...

1

You reached the end

A Failed Experiment With Static Dispatch | Spyke