I am not quite sure is it possible for now, but does Rust compiler have all necessary diagnostic to automatically convert generic functions into pairs of generic entry and inner function that do some work?
That was called "polymorphization" internally. There was an implementation that had issues and was removed some time back. There was a recent thread about this.
1 Like