mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 19:56:44 +01:00
input_dsl: expose InputMap layers; add From<SourceIter> for TokenIter
This commit is contained in:
parent
4ec51d5b69
commit
119d5c35f0
2 changed files with 11 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ impl<'a, S, C: DslCommand<'a, S>, I: DslInput> KeyMap<'a, S, C, I> for TokenIter
|
|||
/// which may be made available subject to given conditions.
|
||||
pub struct InputMap<'a, S, C: DslCommand<'a, S>, I: DslInput, M: KeyMap<'a, S, C, I> + Send + Sync> {
|
||||
__: &'a PhantomData<(S, C, I)>,
|
||||
layers: Vec<(
|
||||
pub layers: Vec<(
|
||||
fn(&S)->bool,
|
||||
M
|
||||
)>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue