• 0 Posts
  • 1 Comment
Joined 2Y ago
cake
Cake day: Feb 01, 2023

help-circle
rss

What you are looking for is called specialization.

It is currently unstable and incomplete, which means you can activate it by adding the macros #![feature(specialization)] and #![allow(incomplete_features)] at the beginning of the file. But you have no guarantee that it will work the same way on the next version of rust.