Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generator: Replace
Extends{Root}
with StructExtends<Root>
generic
Instead of emitting a new `trait` for every `Root` struct that is being implemented by one or more "child" structs (those that have `Root` in their `structextends`), create one trait that takes the root struct as a generic parameter, and implement that directly instead. This not only saves on having to define the `trait` for every `Root` struct but also paves the way towards providing default trait implementations for any pair of root and child struct, such as the `p_next` builder methods.
- Loading branch information