mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
EdnViewData has to go?
This commit is contained in:
parent
ddcb967a2c
commit
585bba6666
6 changed files with 25 additions and 25 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
use crate::*;
|
||||
/// Event source
|
||||
pub trait Input: Send + Sync + Sized {
|
||||
/// Type of input event
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue