Struct rasterize::ImageRef [−][src]
pub struct ImageRef<'a, P> { /* fields omitted */ }
Implementations
Trait Implementations
impl<'a, P> Image for ImageRef<'a, P>
[src]
impl<'a, P> Image for ImageRef<'a, P>
[src]type Pixel = P
Pixel type
fn shape(&self) -> Shape
[src]
fn data(&self) -> &[Self::Pixel]
[src]
fn size(&self) -> Size
[src]
fn width(&self) -> usize
[src]
fn height(&self) -> usize
[src]
fn get(&self, row: usize, col: usize) -> Option<&Self::Pixel>
[src]
fn as_ref(&self) -> ImageRef<'_, Self::Pixel>
[src]
fn iter(&self) -> ImageIter<'_, Self::Pixel>ⓘ
[src]
fn write_ppm<W>(&self, out: W) -> Result<(), Error> where
W: Write,
Self::Pixel: Color,
Self: Sized,
[src]
W: Write,
Self::Pixel: Color,
Self: Sized,
fn write_bmp<W>(&self, out: W) -> Result<(), Error> where
W: Write,
Self::Pixel: Color,
Self: Sized,
[src]
W: Write,
Self::Pixel: Color,
Self: Sized,
Auto Trait Implementations
impl<'a, P> RefUnwindSafe for ImageRef<'a, P> where
P: RefUnwindSafe,
impl<'a, P> RefUnwindSafe for ImageRef<'a, P> where
P: RefUnwindSafe,
impl<'a, P> UnwindSafe for ImageRef<'a, P> where
P: RefUnwindSafe,
impl<'a, P> UnwindSafe for ImageRef<'a, P> where
P: RefUnwindSafe,