# Add traits in Rust highlights \(\#10731\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/c96a96b3ce538f452b677f4f08730aed309162dd)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: c96a96b3ce538f452b677f4f08730aed309162dd

Requested commit: c96a96b3ce538f452b677f4f08730aed309162dd

Commit: c96a96b3ce538f452b677f4f08730aed309162dd

Tree: dd2fab99cae7d0fb9e279ebc8cc00fe38ed05033

Author: Ben Hamment

Committer: GitHub

## Message

```
Add traits in Rust highlights (#10731)

Question: I use type.super here because I made a similar change to the
ruby syntax to apply the same style to superclasses.
With this in mind, should this change be renamed to type.trait or should
it be renamed to something like type.italic so the ruby syntax or any
other language can all use type.italic? or maybe something else
altogether.

<img width="597" alt="image"
src="https://github.com/zed-industries/zed/assets/7274458/9d02dba0-75a4-4439-9f31-fd8aa0873075">

Release Notes:

- Exposed Rust traits as `type.interface` for individual syntax theming.
```

## Parents

- [7f81bfb6b7ad3dfecc5df67b8ce6519f3179fdc8](https://git.cafe/gitcafe/zed/commit/7f81bfb6b7ad3dfecc5df67b8ce6519f3179fdc8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/c96a96b3ce538f452b677f4f08730aed309162dd?format=markdown)
