Suggestion: Can Printer become a trait?
Open
enhancement
internals
- Dominant language
- Rust
- Stars
- 4.8k
- Forks
- 270
- Avg merge
- 5d 19h
- Merged PRs (30d)
- 2
Description
Hi,
I am working on text editor, and I want to have multiple blinking cursors. That's obviously a pain to implement, unless I could wrap a Printer into a wrapper, that would just do the blinking on particular indices. I would just take original Printer and wrap it with something like "CursorAwarePrinter::new(oldPrinter, cursors)" and then use it in drawing function. What do you think?
Regards
NJ Skalski
Contributor guide
Assessment
This issue has not been assessed yet.