EnumIterItem

Trait EnumIterItem 

Source
pub trait EnumIterItem {
    type Item;

    // Required method
    fn iter_items() -> IntoIter<Self::Item>;
}
Expand description

This trait allows an enum to return an iterable vector of it’s elements. This trait is ONLY derivable on traits who’s elements have NO fields

Required Associated Types§

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.

Implementors§