A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/menu.rs')
| -rw-r--r-- | src/menu.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/menu.rs b/src/menu.rs index ca5cb47..fb170ef 100644 --- a/src/menu.rs +++ b/src/menu.rs @@ -48,6 +48,7 @@ pub fn score<'a, T: Key<'a>, D: MenuData<Element<'a> = T> + 'static>( ); let mut v = x .map(move |y| { + println!("holy hell"); if let Some(f) = freq && filter == "" && let Some(f) = f.get(&D::ID) @@ -124,7 +125,9 @@ pub fn filter<'a, T: Key<'a>>( i: impl Iterator<Item = T>, filter: &'_ str, ) -> impl Iterator<Item = T> { + println!("omega"); i.filter(move |y| { + println!("waow?"); filter.is_empty() || y.k().chars().any(|x| filter.chars().contains(&x)) // .collect::<HashSet<_>>() @@ -132,6 +135,9 @@ pub fn filter<'a, T: Key<'a>>( // .count() // > 0 }) + .inspect(|x| { + dbg!(x.k()); + }) } pub trait Key<'a> { |