EdnViewData has to go?

This commit is contained in:
🪞👃🪞 2025-01-14 00:24:48 +01:00
parent ddcb967a2c
commit 585bba6666
6 changed files with 25 additions and 25 deletions

View file

@ -1,6 +1,5 @@
use crate::*;
use EdnItem::*;
/** Implement `EdnCommand` for given `State` and `Command` */
#[macro_export] macro_rules! edn_command {
($Command:ty : |$state:ident:$State:ty| { $((
// identifier
@ -48,7 +47,6 @@ use EdnItem::*;
let $arg: $type = EdnProvide::<$type>::get_or_fail($state, $arg);
};
}
/// Turns an EDN symbol sequence into a command enum variant.
pub trait EdnCommand<C>: Command<C> {
fn from_edn <'a> (state: &C, head: &EdnItem<&str>, tail: &'a [EdnItem<String>]) -> Self;

View file

@ -1,4 +1,3 @@
use crate::*;
/// Event source
pub trait Input: Send + Sync + Sized {
/// Type of input event