struct RGB
for Rust
Rust is strongly typed and your RGB pixel is not compatible with my RGB pixel.
So let's all use mine :P
extern crate rgb;
let px = RGB;
assert_eq!;
let px = RGB8 new;
let inverted = px.map;
println!; // rgb(0,255,0)