#![feature(associated_type_defaults)] mod input; pub use self::input::*; mod command; pub use self::command::*; mod keymap; pub use self::keymap::*; //mod event_map; pub use self::event_map::*; pub(crate) use ::tek_edn::*; /// Standard error trait. pub(crate) use std::error::Error; /// Standard result type. pub(crate) type Usually = Result>; /// Standard optional result type. pub(crate) type Perhaps = Result, Box>; #[cfg(test)] #[test] fn test_stub_input () -> Usually<()> { use crate::*; struct TestInput(bool); enum TestEvent { Test1 } impl Input for TestInput { type Event = TestEvent; type Handled = (); fn event (&self) -> &Self::Event { &TestEvent::Test1 } fn is_done (&self) -> bool { self.0 } fn done (&self) {} } Ok(()) }