1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
//! Devlopment/test helpers

use pixelcolor::PixelColor;

/// Fake pixel colour useful for testing
#[derive(Copy, Clone, PartialEq, Debug)]
pub struct TestPixelColor(pub u8);

impl PixelColor for TestPixelColor {}

impl From<u8> for TestPixelColor {
    fn from(other: u8) -> Self {
        TestPixelColor(other)
    }
}