rgb-0.3.0 has been yanked.
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 = RGB8new;
let inverted = px.map;
println!; // rgb(0,255,0)