1 2 3 4 5 6 7 8 9 10
use crate::color_space::Color; pub trait Image { fn size(self) -> (isize, isize); fn width(self) -> isize; fn height(self) -> isize; fn at(self) -> Box<dyn Color>; }