1 2 3 4 5 6 7 8
std::ops::{ Index, MutIndex, Range }; trait Surface { fn get_pixel(&self, x: usize, y: usize) -> RGB; }