make rustdoc distinguish between `enum` and `type`

rustdoc was not previously distinguishing between `enum` and `type` definitions, formatting them similarly.