mirror of
https://github.com/rust-lang/book.git
synced 2026-12-01 17:16:08 -06:00
@@ -202,7 +202,7 @@ some of the columns in the row contain integers, some floating-point numbers,
|
||||
and some strings. We can define an enum whose variants will hold the different
|
||||
value types, and all the enum variants will be considered the same type: that
|
||||
of the enum. Then we can create a vector to hold that enum and so, ultimately,
|
||||
holds different types. We’ve demonstrated this in Listing 8-9.
|
||||
hold different types. We’ve demonstrated this in Listing 8-9.
|
||||
|
||||
```rust
|
||||
{{#rustdoc_include ../listings/ch08-common-collections/listing-08-09/src/main.rs:here}}
|
||||
|
||||
Reference in New Issue
Block a user