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

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

Notable traits for EnumIterator<T>

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

Allows EnumIterator to iterate over an enum type.

Required methods

pub fn iter_next(v: usize) -> Option<(usize, Self)>[src]

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

Iterators shall start by calling this with 0.

pub fn iter() -> EnumIterator<Self>

Notable traits for EnumIterator<T>

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

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...