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

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

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

Loading content...

Implementors

impl ToEvent for Event[src]

impl ToEvent for Key[src]

impl ToEvent for MouseEvent[src]

Loading content...