diff --git a/src/image.rs b/src/image.rs index ff7db1aefd..9f13c10e35 100644 --- a/src/image.rs +++ b/src/image.rs @@ -225,7 +225,7 @@ pub trait MutableRefImage

: GenericImage

{ ///Return an Iterator over mutable pixels of this image. ///The iterator yields the coordinates of each pixel ///along with a mutable reference to them. - fn mut_pixels(&mut self) -> MutPixels { + fn pixels_mut(&mut self) -> MutPixels { let (width, height) = self.dimensions(); MutPixels { @@ -295,7 +295,7 @@ impl> ImageBuf

{ } ///Return a mutable reference to this image's pixel buffer - pub fn mut_pixelbuf(&mut self) -> &mut [P] { + pub fn pixelbuf_mut(&mut self) -> &mut [P] { self.pixels.as_mut_slice() } @@ -313,9 +313,9 @@ impl> ImageBuf

{ let slice = Slice { data: self.pixels.as_ptr() as *const u8, len: len }; unsafe { transmute(slice) } } - + ///Return a mutable reference to this image's raw data buffer - pub fn mut_rawbuf(&mut self) -> &mut [u8] { + pub fn rawbuf_mut(&mut self) -> &mut [u8] { use std::mem::{ size_of, transmute }; use std::raw::Slice; // Compute size of slice in bytes. @@ -387,7 +387,7 @@ impl<'a, T: Primitive, P: Pixel, I: GenericImage

> SubImage<'a, I> { } ///Return a mutable reference to the wrapped image. - pub fn mut_inner(&mut self) -> &mut I { + pub fn inner_mut(&mut self) -> &mut I { &mut (*self.image) }