pub unsafe trait ImageRef {
// Required methods
fn format(&self) -> PixelFormat;
fn width(&self) -> usize;
fn height(&self) -> usize;
fn planes(&self) -> Box<dyn Iterator<Item = (&[u8], usize)> + '_>;
fn color(&self) -> ColorInfo;
}Expand description
§Safety
Values returned must always be the same every call
Required Methods§
fn format(&self) -> PixelFormat
fn width(&self) -> usize
fn height(&self) -> usize
Sourcefn planes(&self) -> Box<dyn Iterator<Item = (&[u8], usize)> + '_>
fn planes(&self) -> Box<dyn Iterator<Item = (&[u8], usize)> + '_>
Returns an iterator yielding every plane with their associated stride