-
Notifications
You must be signed in to change notification settings - Fork 180
Closed
Description
The incorrect documentation:
Line 169 in 2056939
| /// Implements `Strum::VariantNames` which adds an associated constant `VARIANTS` which is an array of discriminant names. |
Line 215 in 2056939
| /// Adds a static array with all of the Enum's variants. |
Line 220 in 2056939
| /// A trait for retrieving a static array containing all the variants in an Enum. |
The actual types:
Line 217 in 2056939
| const VARIANTS: &'static [&'static str]; |
Line 227 in 2056939
| const VARIANTS: &'static [Self]; |
I personally think these constants should be actual arrays (because it's much easier to get a slice from an array than vice versa), but I'm not sure how feasible that is in current stable Rust.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels