Trait unsegen::input::ToEvent[][src]

pub trait ToEvent {
    fn to_event(self) -> Event;
}
Expand description

Used conveniently supply Event-like arguments to a number of functions in the input module. For example, you can supply Key::Up instead of Event::Key(Key::Up).

Basically an Into<Event>, but we cannot use that as Event is a reexport of termion.

Required methods

fn to_event(self) -> Event[src]

Convert to an event.

Implementors