Trait enum_iter::EnumIter

source ·
pub trait EnumIter
where Self: Sized,
{ // Required method fn variants() -> &'static [Self]; }
Expand description

Get all variants.

See also the IntoEnumIterator trait of the strum crate for a version which can be automatically derived.

Required Methods§

source

fn variants() -> &'static [Self]

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl EnumIter for bool

source§

fn variants() -> &'static [Self]

Implementors§