From 17acdd0575fee29c1146afeb8142e9d75db2c686 Mon Sep 17 00:00:00 2001 From: Joscha Date: Wed, 26 Apr 2023 15:24:12 +0200 Subject: [PATCH] Add Group trait --- cove-input/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cove-input/src/lib.rs b/cove-input/src/lib.rs index c89a689..d3963ee 100644 --- a/cove-input/src/lib.rs +++ b/cove-input/src/lib.rs @@ -3,3 +3,9 @@ mod keys; pub use input::*; pub use keys::*; + +pub trait Group { + type Action; + + fn action(&self, input: &mut Input) -> Option; +}