Create a generic Graphics
trait for rendering backends to implement
#88
Labels
enhancement
New feature or request
Graphics
trait for rendering backends to implement
#88
Motivation
Writing a Yakui renderer is pretty easy, as the
yakui-app
crate is simple and well documented. However, it would be even easier if there was a single trait that a renderer had to implement. This would also open the door to being able to easily test different backends.First draft trait
I'm not particularly good at writing generic Rust code, so I'm sure there's much easier ways to approach this. But something like this might be a good jumping off point:
The text was updated successfully, but these errors were encountered: