pub trait Variants<V> {
// Required method
fn variants() -> Iter<'static, V>;
}
Expand description
Iter defines types that have variants that can be iterated.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.