Add Group trait
This commit is contained in:
parent
072290511b
commit
17acdd0575
1 changed files with 6 additions and 0 deletions
|
|
@ -3,3 +3,9 @@ mod keys;
|
||||||
|
|
||||||
pub use input::*;
|
pub use input::*;
|
||||||
pub use keys::*;
|
pub use keys::*;
|
||||||
|
|
||||||
|
pub trait Group {
|
||||||
|
type Action;
|
||||||
|
|
||||||
|
fn action(&self, input: &mut Input) -> Option<Self::Action>;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue