More trait impls for screen writers

This commit is contained in:
Daniel Beckwith 2020-03-31 18:24:29 -04:00
parent 8eb86d55a1
commit 88ce4a55a1
5 changed files with 6 additions and 6 deletions

View file

@ -33,8 +33,8 @@ const SIZE: usize = WIDTH * HEIGHT;
/// mode.draw_character(118 + offset * 8, 27, character, 255);
/// }
/// ```
#[derive(Default)]
pub struct Graphics320x200x256 {}
#[derive(Debug, Clone, Copy, Default)]
pub struct Graphics320x200x256;
impl Screen for Graphics320x200x256 {
#[inline]

View file

@ -36,7 +36,7 @@ const WIDTH_IN_BYTES: usize = WIDTH / 8;
/// mode.draw_character(270 + offset * 8, 72, character, Color16::White)
/// }
/// ```
#[derive(Default)]
#[derive(Debug, Clone, Copy, Default)]
pub struct Graphics640x480x16;
impl Screen for Graphics640x480x16 {

View file

@ -26,7 +26,7 @@ const HEIGHT: usize = 25;
/// text_mode.clear_screen();
/// text_mode.write_character(0, 0, screen_character);
/// ```
#[derive(Default)]
#[derive(Debug, Clone, Copy, Default)]
pub struct Text40x25;
impl Screen for Text40x25 {

View file

@ -26,7 +26,7 @@ const HEIGHT: usize = 50;
/// text_mode.clear_screen();
/// text_mode.write_character(0, 0, screen_character);
/// ```
#[derive(Default)]
#[derive(Debug, Clone, Copy, Default)]
pub struct Text40x50;
impl Screen for Text40x50 {

View file

@ -26,7 +26,7 @@ const HEIGHT: usize = 25;
/// text_mode.clear_screen();
/// text_mode.write_character(0, 0, screen_character);
/// ```
#[derive(Default)]
#[derive(Debug, Clone, Copy, Default)]
pub struct Text80x25;
impl Screen for Text80x25 {