pub trait Variants: Segment + 'static { }Expand description
An enum with #[derive(Segment)], whose variants the derive lists.
label calls a function once per variant, so a
match in that function names a text for each one, and the compiler
rejects a match that leaves a variant out. Only the derive implements
it, from the enum’s own variants.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".