input_dsl: expose InputMap layers; add From<SourceIter> for TokenIter

This commit is contained in:
🪞👃🪞 2025-04-30 21:49:01 +03:00
parent 4ec51d5b69
commit 119d5c35f0
2 changed files with 11 additions and 2 deletions

View file

@ -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
)>,