atanunq / viuer

Rust library for displaying images in the terminal.
MIT License
241 stars 43 forks source link

Refactor Printer trait #19

Closed atanunq closed 3 years ago

atanunq commented 3 years ago

The aim of this PR was to change the trait's signatures so that an impl std::io::Write variable can be passed. During tests, that could be a Vec and provide a way to assert! functions' output.

Unfortunately, I got off track and refactored the block printer, too. Hopefully, it is a little simpler now. And not a terribly large amount of bugs were introduced..