bernii / embedded-graphics-framebuf

Generic framebuffer implementation in Rust for use with embedded-graphics library
MIT License
26 stars 6 forks source link

Allow array-based backend to be owned by the framebuffer #19

Closed Alpha-3 closed 1 year ago

Alpha-3 commented 1 year ago

Implement FrameBufferBackend for [C; N] in addition to &mut [C; N] for improved ergonomics (eg. allows defining backend array directly within FrameBuf::new(..)). Useful for cases where FrameBuf is abstracted behind a const generic wrapper.

bernii commented 1 year ago

makes sense 👍 thanks for the contribution 🙇