nikis05 / derive-visitor

MIT License
20 stars 6 forks source link

Add fns that create visitors from closures #6

Closed nikis05 closed 2 years ago

nikis05 commented 2 years ago

Just implementing Visitor for FnMut(&T, Event) didn't work out, because type parameter T is unbounded. Instead added functions that allow creating visitors from closures / fns.