% Enums

There is a new edition of the book and this is an old link.

> Enums allow you to define a type by enumerating its possible values.

```rust
enum IpAddrKind {
    V4,
    V6,
}
```

---

Here are the relevant sections in the new and old books:

* **[In the second edition: Ch 6.01 — Defining an Enum][2]**
* [In the first edition: Ch 3.13 — Enums][1]

[1]: first-edition/enums.html
[2]: second-edition/ch06-01-defining-an-enum.html
