fovea-derive 0.2.0

Derive macros for fovea pixel and image traits
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! This test verifies that PlainPixel cannot be derived for enums.

use fovea_derive::PlainPixel;

#[derive(Clone, Copy, PlainPixel)]
#[repr(C)]
pub enum BadPixel {
    Red,
    Green,
    Blue,
}

fn main() {}