5 ms·
Rust has super traits but does not support subtyping. The way super traits work is that they merge all the vtables into one big vtable. However, you can still h
by imtringued 1mo ago
Rust has super traits but does not support subtyping. The way super traits work is that they merge all the vtables into one big vtable. However, you can still have a direct dyn trait reference to the sub traits.
This means you need a separate vtable for all super traits and individual traits.