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

pub trait IterableEnum: Sized {
    fn iter_next(v: usize) -> Option<(usize, Self)>;
fn iter() -> EnumIterator<Self>

Important traits for EnumIterator<T>

impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
; }

Allows EnumIterator to iterate over an enum type.

Required methods

fn iter_next(v: usize) -> Option<(usize, Self)>

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

Iterators shall start by calling this with 0.

fn iter() -> EnumIterator<Self>

Important traits for EnumIterator<T>

impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;

Instantiates an EnumIterator for an iterable type.

Loading content...

Implementations on Foreign Types

impl IterableEnum for u16[src]

Loading content...

Implementors

impl IterableEnum for AbsoluteAxis[src]

impl IterableEnum for AutorepeatKind[src]

impl IterableEnum for EventKind[src]

impl IterableEnum for InputProperty[src]

impl IterableEnum for Key[src]

impl IterableEnum for LedKind[src]

impl IterableEnum for MiscKind[src]

impl IterableEnum for RelativeAxis[src]

impl IterableEnum for SoundKind[src]

impl IterableEnum for SwitchKind[src]

impl IterableEnum for SynchronizeKind[src]

impl IterableEnum for UInputKind[src]

Loading content...