Trait input_linux::enum_iterator::IterableEnum[][src]

pub trait IterableEnum: Sized {
    fn iter_next(v: usize) -> Option<(usize, Self)>;
fn iter() -> EnumIterator<Self>
Notable traits for EnumIterator<T>
impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
; }
Expand description

Allows EnumIterator to iterate over an enum type.

Required methods

Given an index into the iterator, return the value and the next index.

Iterators shall start by calling this with 0.

Instantiates an EnumIterator for an iterable type.

Implementations on Foreign Types

Implementors